Class: Nagira::Logger

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
app/loggers/simple_logger.rb

Overview

Simple logger helper. Use as: Logger.log(message)

Class Method Summary collapse

Class Method Details

.log(message, warning = false) ⇒ Object

Print log message to stdout with optional warning tag



7
8
9
# File 'app/loggers/simple_logger.rb', line 7

def self.log(message, warning=false)
  puts "[#{Time.now}] -- #{ "WARNING:" if warning } #{message}"
end