Module: Enruby::Configuration::Mixins::Logging

Included in:
Base
Defined in:
lib/enruby/configuration/mixins/logging.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



9
10
11
# File 'lib/enruby/configuration/mixins/logging.rb', line 9

def logger
  @logger
end

Instance Method Details

#default_loggerObject



16
17
18
19
20
# File 'lib/enruby/configuration/mixins/logging.rb', line 16

def default_logger
  logger = Logger.new($stdout)
  logger.level = Logger::INFO
  logger
end

#initializeObject



11
12
13
14
# File 'lib/enruby/configuration/mixins/logging.rb', line 11

def initialize
  super
  @logger = default_logger
end