Class: Honeybadger::Logging::BootLogger Private
- 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
- #add(severity, msg) ⇒ Object private
- #flush(logger) ⇒ Object private
-
#initialize ⇒ BootLogger
constructor
private
A new instance of BootLogger.
Methods inherited from Base
Constructor Details
#initialize ⇒ BootLogger
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 |