Module: Hutch::Logging
- Included in:
- Acknowledgements::NackOnAllFailures, Broker, CLI, ErrorHandlers::Base, Publisher, Waiter, Worker
- Defined in:
- lib/hutch/logging.rb
Defined Under Namespace
Classes: HutchFormatter
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.logger ⇒ Object
20 21 22 |
# File 'lib/hutch/logging.rb', line 20 def self.logger @logger || setup_logger end |
.logger=(logger) ⇒ Object
24 25 26 |
# File 'lib/hutch/logging.rb', line 24 def self.logger=(logger) @logger = logger end |
.setup_logger ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/hutch/logging.rb', line 12 def self.setup_logger require 'hutch/config' @logger = Logger.new($stdout).tap do |l| l.level = Hutch::Config.log_level l.formatter = HutchFormatter.new end end |