Module: Enviro::Logger

Defined in:
lib/enviro/logger.rb

Defined Under Namespace

Modules: ClassMethods Classes: DirectoryNotFound

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/enviro/logger.rb', line 6

def self.included(base)
  base.send(:extend, ClassMethods)
  base.instance_eval do
    class << self
      extend Forwardable
      def_delegators :logger, :debug, :error, :fatal, :info, :warn
    end
  end
end