module NauktisUtils::Logging
Logger module that can be included in classes
Public Class Methods
logger()
click to toggle source
Global, memoized, lazy initialized instance of a logger
# File lib/nauktis_utils/logging.rb, line 10 def self.logger @logger ||= Logger.new(STDOUT) end
logger=(new_logger)
click to toggle source
# File lib/nauktis_utils/logging.rb, line 14 def self.logger=(new_logger) @logger = new_logger end
Public Instance Methods
logger()
click to toggle source
Method making the logger mixed where needed
# File lib/nauktis_utils/logging.rb, line 5 def logger Logging.logger end