Module: Insight::Logging

Included in:
Database, Database::Table, Instrumentation::Instrument, Instrumentation::Probe, Instrumentation::Probe, Instrumentation::Probe::ProbeRunner, Panel, PathFilter, Render, Toolbar
Defined in:
lib/insight/logger.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) logger(env = nil)



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