Module: Gauge::GaugeLog
- Defined in:
- lib/log.rb
Class Method Summary collapse
Class Method Details
.init ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/log.rb', line 23 def self.init() Log.formatter = proc do |severity, datetime, progname, msg| if ENV['IS_DAEMON'] "#{datetime.strftime('%H:%M:%S.%L')} #{msg}\n" else "#{msg}\n" end end end |