Class: Skylight::Util::AlertLogger Private
- Defined in:
- lib/skylight/util/logging.rb
Overview
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.
Log both to the specified logger and STDOUT
Instance Method Summary collapse
- #close ⇒ Object private
-
#initialize(logger) ⇒ AlertLogger
constructor
private
A new instance of AlertLogger.
- #write(*args) ⇒ Object private
Constructor Details
#initialize(logger) ⇒ AlertLogger
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 AlertLogger.
7 8 9 |
# File 'lib/skylight/util/logging.rb', line 7 def initialize(logger) @logger = logger end |
Instance Method Details
#close ⇒ 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.
16 17 |
# File 'lib/skylight/util/logging.rb', line 16 def close end |
#write(*args) ⇒ 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.
11 12 13 14 |
# File 'lib/skylight/util/logging.rb', line 11 def write(*args) STDERR.write *args @logger.<<(*args) end |