Class: WorkerArmy::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/worker_army/log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLog

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

#logObject

Returns the value of attribute log.



3
4
5
# File 'lib/worker_army/log.rb', line 3

def log
  @log
end