Module: Logging
- Included in:
- Main
- Defined in:
- lib/logging.rb
Class Method Summary collapse
Class Method Details
.log(msg) ⇒ Object
4 5 6 7 8 |
# File 'lib/logging.rb', line 4 def self.log(msg) logger = Logger.new(STDOUT) logger.formatter = proc { |_severity, _datetime, _progname, msg| "#{msg}\n" } logger.info(msg) end |