Module: PuppetDBQuery::Logging
- Defined in:
- lib/puppetdb_query/logging.rb
Overview
for logger access just include this module
Class Attribute Summary collapse
Class Method Summary collapse
-
.included(base) ⇒ Object
addition.
Instance Method Summary collapse
Class Attribute Details
.logger ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/puppetdb_query/logging.rb', line 9 def logger unless @logger @logger = Logger.new($stdout) @logger.level = (ENV['LOG_LEVEL'] || Logger::DEBUG).to_i end @logger end |