Class: Coupler::Logger

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

Instance Method Summary collapse

Constructor Details

#initializeLogger

Returns a new instance of Logger.



5
6
7
8
9
10
# File 'lib/coupler/logger.rb', line 5

def initialize
  log_path = Coupler.log_path
  Dir.mkdir(log_path)    if !File.exist?(log_path)
  @logger = ::Logger.new(File.join(log_path, "#{Coupler.environment}.log"))
  super(@logger)
end

Instance Method Details

#__getobj__Object



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

def __getobj__
  @logger
end