Module: DataAnon::Utils::Logging

Instance Method Summary collapse

Instance Method Details

#loggerObject


8
9
10
# File 'lib/utils/logging.rb', line 8

def logger
  @@logger ||= (self.logger = Logger.new(STDOUT) )
end

#logger=(logger) ⇒ Object


12
13
14
15
16
# File 'lib/utils/logging.rb', line 12

def logger= logger
  @@logger = logger
  ActiveRecord::Base.logger = logger
  @@logger
end