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

Instance Method Details

#log_debug(msg) ⇒ Object

Records a ‘debug` log message.

Parameters:

  • msg (String)

    The message to log.



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.

Parameters:

  • msg (String)

    The message to log.



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.

Parameters:

  • msg (String)

    The message to log.



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.

Parameters:

  • msg (String)

    The message to log.



34
35
36
# File 'lib/bozo/logging.rb', line 34

def log_warn(msg)
  puts msg.color(:yellow).bright
end