Class: C3s::C3sLogger
- Inherits:
-
Object
- Object
- C3s::C3sLogger
- Defined in:
- lib/c3s_logger.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ C3sLogger
constructor
A new instance of C3sLogger.
Constructor Details
#initialize ⇒ C3sLogger
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
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/c3s_logger.rb', line 6 def logger @logger end |