Module: Picnic::Logger
- Defined in:
- lib/picnic/logger.rb
Defined Under Namespace
Class Method Summary collapse
-
.init_global_logger! ⇒ Object
Makes available a Logger instance under the global $LOG variable.
Class Method Details
.init_global_logger! ⇒ Object
Makes available a Logger instance under the global $LOG variable.
7 8 9 10 11 12 13 |
# File 'lib/picnic/logger.rb', line 7 def init_global_logger! logdev = ($CONF && $CONF.log[:file]) || STDOUT $LOG = Picnic::Logger::Base.new(logdev) $LOG.level = Picnic::Logger::Base.const_get(($CONF && $CONF.log[:level]) || 'DEBUG') puts "Initialized global logger to #{logdev.inspect}." end |