Module: Beez::Loggable

Included in:
Beez
Defined in:
lib/beez/loggable.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



3
4
5
# File 'lib/beez/loggable.rb', line 3

def logger
  @logger || setup_logger
end

#logger=(logger) ⇒ Object



7
8
9
# File 'lib/beez/loggable.rb', line 7

def logger=(logger)
  @logger = logger
end

#setup_loggerObject



11
12
13
# File 'lib/beez/loggable.rb', line 11

def setup_logger
  @logger = Beez.config.logger
end