Module: Enviro::Logger::ClassMethods

Defined in:
lib/enviro/logger.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



28
29
30
# File 'lib/enviro/logger.rb', line 28

def logger
  @_logger ||= _setup_logger_for_environment
end

#logger_dirObject



24
25
26
# File 'lib/enviro/logger.rb', line 24

def logger_dir
  @_logger_dir ||= ENV[self.logger_dir_env]
end

#logger_dir_env(value = nil) ⇒ Object



18
19
20
21
22
# File 'lib/enviro/logger.rb', line 18

def logger_dir_env(value=nil)
  @_logger_dir_env ||= 'ENVIRO_LOG_DIR'
  @_logger_dir_env = value.to_s.upcase unless value.nil?
  @_logger_dir_env
end