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



7
8
9
# File 'lib/makara/logging/logger.rb', line 7

def log(msg, format = :error)
  logger.send(format, msg) if logger
end

.loggerObject



11
12
13
# File 'lib/makara/logging/logger.rb', line 11

def logger
  @logger
end

.logger=(l) ⇒ Object



15
16
17
# File 'lib/makara/logging/logger.rb', line 15

def logger=(l)
  @logger = l
end