Class: Librr::Logger

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/librr/logger.rb

Defined Under Namespace

Modules: ClassLogger

Instance Method Summary collapse

Instance Method Details

#create_loggerObject



30
31
32
33
34
# File 'lib/librr/logger.rb', line 30

def create_logger
  logger = Logger.new(STDOUT)
  logger.level = Logger::WARN
  logger
end

#loggerObject



22
23
24
# File 'lib/librr/logger.rb', line 22

def logger
  @logger ||= self.create_logger
end

#logger=(logger) ⇒ Object



26
27
28
# File 'lib/librr/logger.rb', line 26

def logger=(logger)
  @logger = logger
end