Module: DataAnon::Utils::Logging

Instance Method Summary collapse

Instance Method Details

#loggerObject



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

def logger
  @@utils_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
  @@utils_logger = logger
  ActiveRecord::Base.logger = logger
  @@utils_logger
end