Class: Makara::Logging::Logger
- Inherits:
-
Object
- Object
- Makara::Logging::Logger
- Defined in:
- lib/makara/logging/logger.rb
Class Method Summary collapse
Class Method Details
.log(msg, format = :error) ⇒ Object
5 6 7 |
# File 'lib/makara/logging/logger.rb', line 5 def log(msg, format = :error) logger.send(format, "[Makara] #{msg}") if logger end |
.logger ⇒ Object
9 10 11 |
# File 'lib/makara/logging/logger.rb', line 9 def logger @logger end |
.logger=(l) ⇒ Object
13 14 15 |
# File 'lib/makara/logging/logger.rb', line 13 def logger=(l) @logger = l end |