Module: LiteLogger

Defined in:
lib/lite_logger.rb,
lib/lite_logger/logger.rb,
lib/lite_logger/version.rb

Defined Under Namespace

Classes: Error, Logger

Constant Summary collapse

VERSION =
'0.1.7'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject

Returns the value of attribute logger.



10
11
12
# File 'lib/lite_logger.rb', line 10

def logger
  @logger
end

Class Method Details

.configure {|self.logger ||= LiteLogger::Logger.new| ... } ⇒ Object

Yields:



12
13
14
# File 'lib/lite_logger.rb', line 12

def configure
  yield self.logger ||= LiteLogger::Logger.new
end