Class: Istox::Logger
- Inherits:
-
Object
- Object
- Istox::Logger
- Defined in:
- lib/istox/helpers/logger.rb
Class Method Summary collapse
Class Method Details
.logger ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/istox/helpers/logger.rb', line 5 def self.logger return @logger if @logger.present? @logger = ::Ougai::Logger.new(STDOUT) @logger.formatter = ::Ougai::Formatters::Readable.new unless Rails.env.production? @logger end |