Class: Istox::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/istox/helpers/logger.rb

Class Method Summary collapse

Class Method Details

.loggerObject



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