Module: Insight::Logging

Class Method Summary collapse

Class Method Details

.logger(env = nil) ⇒ Object



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

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