Class: Kitchen::Logger::StdoutLogger
- Inherits:
-
LogdevLogger
- Object
- Logger
- LogdevLogger
- Kitchen::Logger::StdoutLogger
- Defined in:
- lib/kitchen/logger.rb
Overview
Internal class which reformats logging methods for display as console output.
Instance Method Summary collapse
-
#debug(msg = nil, &block) ⇒ Object
Log a debug message.
-
#error(msg = nil, &block) ⇒ Object
Log an error message.
-
#fatal(msg = nil, &block) ⇒ Object
Log a fatal message.
-
#info(msg = nil, &block) ⇒ Object
Log an info message.
-
#unknown(msg = nil, &block) ⇒ Object
Log an unknown message.
-
#warn(msg = nil, &block) ⇒ Object
Log a warn message.
Methods inherited from LogdevLogger
Instance Method Details
#debug(msg = nil, &block) ⇒ Object
Log a debug message
382 383 384 |
# File 'lib/kitchen/logger.rb', line 382 def debug(msg = nil, &block) super("D #{msg}", &block) end |
#error(msg = nil, &block) ⇒ Object
Log an error message
403 404 405 |
# File 'lib/kitchen/logger.rb', line 403 def error(msg = nil, &block) super(">>>>>> #{msg}", &block) end |
#fatal(msg = nil, &block) ⇒ Object
Log a fatal message
410 411 412 |
# File 'lib/kitchen/logger.rb', line 410 def fatal(msg = nil, &block) super("!!!!!! #{msg}", &block) end |
#info(msg = nil, &block) ⇒ Object
Log an info message
389 390 391 |
# File 'lib/kitchen/logger.rb', line 389 def info(msg = nil, &block) super(" #{msg}", &block) end |
#unknown(msg = nil, &block) ⇒ Object
Log an unknown message
417 418 419 |
# File 'lib/kitchen/logger.rb', line 417 def unknown(msg = nil, &block) super("?????? #{msg}", &block) end |
#warn(msg = nil, &block) ⇒ Object
Log a warn message
396 397 398 |
# File 'lib/kitchen/logger.rb', line 396 def warn(msg = nil, &block) super("$$$$$$ #{msg}", &block) end |