Class: Coupler::Logger
- Inherits:
-
Delegator
- Object
- Delegator
- Coupler::Logger
- Includes:
- Singleton
- Defined in:
- lib/coupler/logger.rb
Instance Method Summary collapse
- #__getobj__ ⇒ Object
-
#initialize ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize ⇒ Logger
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 |