Class: Crosstest::Core::StdoutLogger
- Inherits:
-
LogdevLogger
- Object
- Logger
- LogdevLogger
- Crosstest::Core::StdoutLogger
- Defined in:
- lib/crosstest/core/logging.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
85 86 87 |
# File 'lib/crosstest/core/logging.rb', line 85 def debug(msg = nil, &block) super("D #{msg}", &block) end |
#error(msg = nil, &block) ⇒ Object
Log an error message
106 107 108 |
# File 'lib/crosstest/core/logging.rb', line 106 def error(msg = nil, &block) super(">>>>>> #{msg}", &block) end |
#fatal(msg = nil, &block) ⇒ Object
Log a fatal message
113 114 115 |
# File 'lib/crosstest/core/logging.rb', line 113 def fatal(msg = nil, &block) super("!!!!!! #{msg}", &block) end |
#info(msg = nil, &block) ⇒ Object
Log an info message
92 93 94 |
# File 'lib/crosstest/core/logging.rb', line 92 def info(msg = nil, &block) super(" #{msg}", &block) end |
#unknown(msg = nil, &block) ⇒ Object
Log an unknown message
120 121 122 |
# File 'lib/crosstest/core/logging.rb', line 120 def unknown(msg = nil, &block) super("?????? #{msg}", &block) end |
#warn(msg = nil, &block) ⇒ Object
Log a warn message
99 100 101 |
# File 'lib/crosstest/core/logging.rb', line 99 def warn(msg = nil, &block) super("$$$$$$ #{msg}", &block) end |