Module: Insight::Logging
- Included in:
- Database, Database::Table, Instrumentation::Instrument, Instrumentation::Probe, Instrumentation::Probe, Instrumentation::Probe::ProbeRunner, Panel, Render
- Defined in:
- lib/insight/logger.rb
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 |