Class: C3s::C3sLogger

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeC3sLogger

Returns a new instance of C3sLogger.



8
9
10
11
12
13
# File 'lib/c3s_logger.rb', line 8

def initialize
  log_file = File.join(C3S_LOG_DIR, 'component.log')
  logger = Logger.new(log_file, "weekly")
  logger.formatter = C3sLogFormatter.new
  self.logger = logger
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



6
7
8
# File 'lib/c3s_logger.rb', line 6

def logger
  @logger
end