Module: Fleck::Core::Consumer::Logger::InstanceMethods
- Defined in:
- lib/fleck/core/consumer/logger.rb
Overview
Defines instance methods to import when ‘Logger` module is imported.
Instance Method Summary collapse
Instance Method Details
#logger ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/fleck/core/consumer/logger.rb', line 19 def logger return @logger if @logger @logger = self.class.logger.clone @logger.progname = self.class.name.to_s + (configs[:concurrency].to_i <= 1 ? '' : "[#{consumer_id}]") @logger end |