Module: Smith::Logger

Defined Under Namespace

Modules: Methods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

def self.included(base)

  if !Logging.const_defined?(:MAX_LEVEL_LENGTH)
    Logging.init([:verbose, :debug, :info, :warn, :error, :fatal])
  end

  base.class_eval do
    include Methods
    extend Methods
  end
end