module Gallus::PackageLogging
Public: Similarly to Perfume::Logging
no point to initialize global logger for your modules/packages. Include this mixin to define LOGGER constant and log class method shortcut.
Often used practice is to define such top level logger as a parent with default outputters, formatters, log level, etc.
Public Class Methods
included(klass)
click to toggle source
# File lib/gallus/package_logging.rb, line 9 def self.included(klass) klass.const_set(:LOG, ::Gallus::Log.configure(klass.name)) klass.extend(ClassMethods) end