Class: DoraBox::Logger
- Inherits:
-
Object
- Object
- DoraBox::Logger
- Defined in:
- lib/doraBox/util/logger.rb
Class Method Summary collapse
Class Method Details
.log_with_type(sentence, type) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/doraBox/util/logger.rb', line 11 def self.log_with_type(sentence, type) case type when DEFAULT_LOG then puts sentence.to_s.colorize(:default) when HIGHLIGHT_LOG then puts sentence.to_s.colorize(:green) when ERROR_LOG then puts sentence.to_s.colorize(:red) when WARNING then puts sentence.to_s.colorize(:yellow) else puts sentence.to_s.colorize(:default) end end |