Module: Insight::Logging

Class Method Summary collapse

Class Method Details

.logger(env = nil) ⇒ Object



44
45
46
47
48
49
50
# File 'lib/insight/logger.rb', line 44

def logger(env = nil)
  if env.nil?
    Thread.current['insight.logger'] ||= Logger.new(Logger::DEBUG, "")
  else
    env["insight.logger"]
  end
end