Class: Bosh::Director::TaggedLogger
- Defined in:
- lib/bosh/director/tagged_logger.rb
Instance Method Summary collapse
- #debug(message) ⇒ Object
- #error(message) ⇒ Object
- #info(message) ⇒ Object
-
#initialize(logger, *tags) ⇒ TaggedLogger
constructor
A new instance of TaggedLogger.
- #warn(message) ⇒ Object
Constructor Details
#initialize(logger, *tags) ⇒ TaggedLogger
Returns a new instance of TaggedLogger.
3 4 5 6 |
# File 'lib/bosh/director/tagged_logger.rb', line 3 def initialize(logger, *) @logger = logger @tags = .map { |t| "[#{t}]" }.join('') end |
Instance Method Details
#debug(message) ⇒ Object
16 17 18 |
# File 'lib/bosh/director/tagged_logger.rb', line 16 def debug() @logger.debug(()) end |
#error(message) ⇒ Object
8 9 10 |
# File 'lib/bosh/director/tagged_logger.rb', line 8 def error() @logger.error(()) end |
#info(message) ⇒ Object
12 13 14 |
# File 'lib/bosh/director/tagged_logger.rb', line 12 def info() @logger.info(()) end |
#warn(message) ⇒ Object
20 21 22 |
# File 'lib/bosh/director/tagged_logger.rb', line 20 def warn() @logger.warn(()) end |