Module: Onuro::Loggable
Class Method Summary collapse
-
.logger ⇒ Object
Global, memoized, lazy initialized instance of a logger.
- .logger_file ⇒ Object
Instance Method Summary collapse
Class Method Details
.logger ⇒ Object
Global, memoized, lazy initialized instance of a logger
12 13 14 |
# File 'lib/onuro/loggable.rb', line 12 def self.logger @logger ||= ActiveSupport::Logger.new(logger_file, 10, 1_024_000) end |
.logger_file ⇒ Object
16 17 18 |
# File 'lib/onuro/loggable.rb', line 16 def self.logger_file 'log/onuro_engine.log' end |