class Raven::LogBackend

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.cr

Constructors

Instance Method Summary

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") #

[View source]

Instance Method Detail

def active? #

[View source]
def capture? #

[View source]
def capture_all=(capture_all : Bool) #

Captures each logged entry.

See Raven.capture


[View source]
def capture_all? : Bool #

Captures each logged entry.

See Raven.capture


[View source]
def capture_exceptions=(capture_exceptions : Bool) #

Captures Exception attached to the logged entry, if present.

See Raven.capture


[View source]
def capture_exceptions? : Bool #

Captures Exception attached to the logged entry, if present.

See Raven.capture


[View source]
def default_logger : String #

Default name of the root logger.

See Event#logger, Breadcrumb#category


[View source]
def default_logger=(default_logger : String) #

Default name of the root logger.

See Event#logger, Breadcrumb#category


[View source]
def record_breadcrumbs=(record_breadcrumbs : Bool) #

Records each logged entry as a breadcrumb.

See Raven.breadcrumbs


[View source]
def record_breadcrumbs? : Bool #

Records each logged entry as a breadcrumb.

See Raven.breadcrumbs


[View source]
def write(entry : ::Log::Entry) #
Description copied from class Log::Backend

Writes the entry to this backend.


[View source]