lib/semantic_logger/appender/bugsnag.rb
# Send an error notification to Bugsnag
Send an error notification to Bugsnag
Send an error notification to Bugsnag
def log(log)
    return false if log.name == 'Bugsnag'
    exception =
      if log.exception
        log.exception.set_backtrace(log.backtrace) if !log.exception.backtrace && log.backtrace
        log.exception
      else
        error = RuntimeError.new(log.message)
        error.set_backtrace(log.backtrace) if log.backtrace
        error
      end
    Bugsnag.notify(exception, formatter.call(log, self))
    true
  end
def log ( log ) return false if log . name == 'Bugsnag' exception = if log . exception log . exception . set_backtrace ( log . backtrace ) if ! log . exception . backtrace && log . backtrace log . exception else error = RuntimeError . new ( log . message ) error . set_backtrace ( log . backtrace ) if log . backtrace error end Bugsnag . notify ( exception , formatter . call ( log , self ) ) true end
Send an error notification to Bugsnag
Send an error notification to Bugsnag
# Ignore logs coming from Bugsnag itself # Send error messages as Runtime exceptions # Manually constructed Exception, without a backtrace. # For more documentation on the Bugsnag.notify method see: # https://bugsnag.com/docs/notifiers/ruby#sending-handled-exceptions
log