class Exceptions::Backends::Logger
Public: Logger
is an implementation of the Backend
interface that logs exceptions to STDOUT.
Attributes
logger[RW]
Public Class Methods
new(logger = ::Logger.new(STDOUT))
click to toggle source
# File lib/exceptions/backends/logger.rb, line 8 def initialize(logger = ::Logger.new(STDOUT)) @logger = logger end
Public Instance Methods
notify(exception, options = {})
click to toggle source
# File lib/exceptions/backends/logger.rb, line 12 def notify(exception, options = {}) logger.info exception Result.new end