Class: Nagira::Logger
- Inherits:
-
Object
- Object
- Nagira::Logger
- Includes:
- Singleton
- Defined in:
- app/loggers/simple_logger.rb
Overview
Simple logger helper. Use as: Logger.log(message)
Class Method Summary collapse
-
.log(message, warning = false) ⇒ Object
Print log message to stdout with optional warning tag.
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(, warning=false) puts "[#{Time.now}] -- #{ "WARNING:" if warning } #{}" end |