Class: Makara::Logging::Logger

Inherits:
Object
  • Object
show all
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

.loggerObject



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