Module: Flue::Logger

Included in:
ERBFilter, Runner
Defined in:
lib/flue/logger.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

DEFAULT_LOGGER =
::Logger.new($stdout)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
# File 'lib/flue/logger.rb', line 7

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#loggerObject



11
12
13
# File 'lib/flue/logger.rb', line 11

def logger
  self.class.logger || DEFAULT_LOGGER
end