Module: Sinicum::Logger::ClassMethods

Defined in:
lib/sinicum/logger.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



19
20
21
22
23
24
25
# File 'lib/sinicum/logger.rb', line 19

def logger
  if defined?(Rails) && Rails.logger
    return Rails.logger
  else
    return @@logger
  end
end