require 'logging' module Junkie # Utility module that includes a logging function `log` into the class # that includes this mdoule module Log # constructs a new Logger for the class # # @return [Logging.logger] returns a Logger instance for the current class def log @log ||= Logging.logger[self] end end end