Module: VcenterLib::Logging
- Included in:
- Vcenter, VmConverter
- Defined in:
- lib/vcenter_lib/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/vcenter_lib/logging.rb', line 9 def logger unless @logger @logger = Logger.new($stdout) @logger.level = (ENV['LOG_LEVEL'] || Logger::INFO).to_i end @logger end |