Class: Dribbled::Logger
- Inherits:
-
Object
- Object
- Dribbled::Logger
- Includes:
- Singleton
- Defined in:
- lib/dribbled/logger.rb
Instance Attribute Summary collapse
-
#log ⇒ Object
readonly
Returns the value of attribute log.
Instance Method Summary collapse
-
#initialize ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize ⇒ Logger
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
#log ⇒ Object (readonly)
Returns the value of attribute log.
10 11 12 |
# File 'lib/dribbled/logger.rb', line 10 def log @log end |