Class: Polytrix::Logger::StdoutLogger
- Inherits:
-
LogdevLogger
- Object
- Logger
- LogdevLogger
- Polytrix::Logger::StdoutLogger
- Defined in:
- lib/polytrix/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
334 335 336 |
# File 'lib/polytrix/logger.rb', line 334 def debug(msg = nil, &block) super("D #{msg}", &block) end |
#error(msg = nil, &block) ⇒ Object
Log an error message
355 356 357 |
# File 'lib/polytrix/logger.rb', line 355 def error(msg = nil, &block) super(">>>>>> #{msg}", &block) end |
#fatal(msg = nil, &block) ⇒ Object
Log a fatal message
362 363 364 |
# File 'lib/polytrix/logger.rb', line 362 def fatal(msg = nil, &block) super("!!!!!! #{msg}", &block) end |
#info(msg = nil, &block) ⇒ Object
Log an info message
341 342 343 |
# File 'lib/polytrix/logger.rb', line 341 def info(msg = nil, &block) super(" #{msg}", &block) end |
#unknown(msg = nil, &block) ⇒ Object
Log an unknown message
369 370 371 |
# File 'lib/polytrix/logger.rb', line 369 def unknown(msg = nil, &block) super("?????? #{msg}", &block) end |
#warn(msg = nil, &block) ⇒ Object
Log a warn message
348 349 350 |
# File 'lib/polytrix/logger.rb', line 348 def warn(msg = nil, &block) super("$$$$$$ #{msg}", &block) end |