Module: Catlass::Logger::Helper
- Included in:
- Actions
- Defined in:
- lib/catlass/logger.rb
Class Method Summary collapse
- .debug(msg) ⇒ Object
- .fatal(msg) ⇒ Object
- .info(msg) ⇒ Object
- .log(level, message) ⇒ Object
- .warn(msg) ⇒ Object
Class Method Details
.debug(msg) ⇒ Object
84 85 86 |
# File 'lib/catlass/logger.rb', line 84 def debug(msg) log(:debug, msg) end |
.fatal(msg) ⇒ Object
80 81 82 |
# File 'lib/catlass/logger.rb', line 80 def fatal(msg) log(:error, msg) end |
.info(msg) ⇒ Object
72 73 74 |
# File 'lib/catlass/logger.rb', line 72 def info(msg) log(:info, msg) end |
.log(level, message) ⇒ Object
67 68 69 70 |
# File 'lib/catlass/logger.rb', line 67 def log(level, ) logger = Catlass::Logger.instance logger.send(level, ) end |
.warn(msg) ⇒ Object
76 77 78 |
# File 'lib/catlass/logger.rb', line 76 def warn(msg) log(:warn, msg) end |