Class: Dribbled::Logger

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/dribbled/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLogger

Returns a new instance of Logger.



12
13
14
15
# File 'lib/dribbled/logger.rb', line 12

def initialize
  @log = Log4r::Logger.new("dribbled")
  @log.add Log4r::StderrOutputter.new('console', :formatter => Log4r::PatternFormatter.new(:pattern => "%c [%l] %m"), :level => Log4r::DEBUG)
end

Instance Attribute Details

#logObject (readonly)

Returns the value of attribute log.



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

def log
  @log
end