Class: WorkerArmy::Log
- Inherits:
-
Object
- Object
- WorkerArmy::Log
- Defined in:
- lib/worker_army/log.rb
Instance Attribute Summary collapse
-
#log ⇒ Object
Returns the value of attribute log.
Instance Method Summary collapse
-
#initialize ⇒ Log
constructor
A new instance of Log.
Constructor Details
#initialize ⇒ Log
Returns a new instance of Log.
5 6 7 8 |
# File 'lib/worker_army/log.rb', line 5 def initialize self.log = Logger.new('/tmp/worker-army.log') self.log.level = Logger::DEBUG end |
Instance Attribute Details
#log ⇒ Object
Returns the value of attribute log.
3 4 5 |
# File 'lib/worker_army/log.rb', line 3 def log @log end |