Class: Console::Logger
Defined Under Namespace
Classes: Style
Constant Summary
Constants inherited from Logger
Logger::DETAILED_FORMAT, Logger::SIMPLE_FORMAT, Logger::TRACE_STYLES
Instance Attribute Summary collapse
-
#style ⇒ Object
Returns the value of attribute style.
Instance Method Summary collapse
Methods inherited from Logger
#format_procedure, #setup_format, #trace
Instance Attribute Details
#style ⇒ Object
Returns the value of attribute style.
160 161 162 |
# File 'lib/more/facets/logger.rb', line 160 def style @style end |
Instance Method Details
#debug(str) ⇒ Object
186 187 188 189 190 |
# File 'lib/more/facets/logger.rb', line 186 def debug(str) self << style.debug(str) super self << Console::ANSICode.clear end |
#error(str) ⇒ Object
179 180 181 182 183 184 |
# File 'lib/more/facets/logger.rb', line 179 def error(str) return if level > Logger::ERROR self << style.error(str) super self << Console::ANSICode.clear end |