Module: Pifan::Logging
- Included in:
- Process
- Defined in:
- lib/pifan/logging.rb
Class Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.level ⇒ Object
8 9 10 |
# File 'lib/pifan/logging.rb', line 8 def level @level ||= :error end |
.logger ⇒ Object
12 13 14 15 16 |
# File 'lib/pifan/logging.rb', line 12 def logger @logger ||= TTY::Logger.new do |config| config.level = level end end |