class Raven::LogBackend
- Raven::LogBackend
- Log::Backend
- Reference
- Object
Overview
::Log::Backend
recording logged messages.
Log.setup do |c|
c.bind "*", :info, Log::IOBackend.new
c.bind "*", :info, Raven::LogBackend.new(record_breadcrumbs: true)
c.bind "*", :warn, Raven::LogBackend.new(capture_exceptions: true)
c.bind "*", :fatal, Raven::LogBackend.new(capture_all: true)
end
Defined in:
raven/log_backend.crConstructors
Instance Method Summary
- #active?
- #capture?
-
#capture_all=(capture_all : Bool)
Captures each logged entry.
-
#capture_all? : Bool
Captures each logged entry.
-
#capture_exceptions=(capture_exceptions : Bool)
Captures
Exception
attached to the logged entry, if present. -
#capture_exceptions? : Bool
Captures
Exception
attached to the logged entry, if present. -
#default_logger : String
Default name of the root logger.
-
#default_logger=(default_logger : String)
Default name of the root logger.
-
#record_breadcrumbs=(record_breadcrumbs : Bool)
Records each logged entry as a breadcrumb.
-
#record_breadcrumbs? : Bool
Records each logged entry as a breadcrumb.
-
#write(entry : ::Log::Entry)
Writes the entry to this backend.
Constructor Detail
def self.new(dispatch_mode : ::Log::DispatchMode = :sync, *, record_breadcrumbs : Bool = false, capture_exceptions : Bool = false, capture_all : Bool = false, default_logger : String = "logger")
#
Instance Method Detail
def capture_exceptions=(capture_exceptions : Bool)
#
Captures Exception
attached to the logged entry, if present.
See Raven.capture
def capture_exceptions? : Bool
#
Captures Exception
attached to the logged entry, if present.
See Raven.capture
def record_breadcrumbs=(record_breadcrumbs : Bool)
#
Records each logged entry as a breadcrumb.
See Raven.breadcrumbs
def write(entry : ::Log::Entry)
#
Description copied from class Log::Backend
Writes the entry to this backend.