module Alexandria::Logging

A mixin to include a log instance method for objects or a static log method for classes and modules. In either case, a LogWrapper is returned which wraps the Alexandria log and specifies the appropriate source object, class or module.

Public Class Methods

included(base) click to toggle source
# File lib/alexandria/logging.rb, line 125
def self.included(base)
  base.extend(ClassMethods)
end

Public Instance Methods

log() click to toggle source
# File lib/alexandria/logging.rb, line 129
def log
  @log ||= LogWrapper.new(Alexandria.log, self)
end