Class: Honeybadger::Logging::BootLogger Private

Inherits:
Base
  • Object
show all
Includes:
Singleton
Defined in:
lib/honeybadger/logging.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Methods inherited from Base

#level

Constructor Details

#initializeBootLogger

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of BootLogger.



71
72
73
# File 'lib/honeybadger/logging.rb', line 71

def initialize
  @messages = []
end

Instance Method Details

#add(severity, msg) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



75
76
77
# File 'lib/honeybadger/logging.rb', line 75

def add(severity, msg)
  @messages << [severity, msg]
end

#flush(logger) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



79
80
81
82
83
84
# File 'lib/honeybadger/logging.rb', line 79

def flush(logger)
  @messages.each do |msg|
    logger.add(*msg)
  end
  @messages.clear
end