Module: Bozo::Logging
- Included in:
- Runner, Versioning::VersionBumper
- Defined in:
- lib/bozo/logging.rb
Overview
Module that provides functionality for logging.
Instance Method Summary collapse
-
#log_debug(msg) ⇒ Object
Records a ‘debug` log message.
-
#log_fatal(msg) ⇒ Object
Records a ‘fatal` log message.
-
#log_info(msg) ⇒ Object
Records an ‘info` log message.
-
#log_warn(msg) ⇒ Object
Records a ‘warn` log message.
Instance Method Details
#log_debug(msg) ⇒ Object
Records a ‘debug` log message.
10 11 12 |
# File 'lib/bozo/logging.rb', line 10 def log_debug(msg) puts " #{msg.bright.color(:black)}" end |
#log_fatal(msg) ⇒ Object
Records a ‘fatal` log message.
18 19 20 |
# File 'lib/bozo/logging.rb', line 18 def log_fatal(msg) puts msg.color(:red).bright end |
#log_info(msg) ⇒ Object
Records an ‘info` log message.
26 27 28 |
# File 'lib/bozo/logging.rb', line 26 def log_info(msg) puts msg.color(:cyan).bright end |
#log_warn(msg) ⇒ Object
Records a ‘warn` log message.
34 35 36 |
# File 'lib/bozo/logging.rb', line 34 def log_warn(msg) puts msg.color(:yellow).bright end |