Module: Cayuga::Tools::Loggable

Included in:
Object::Factory, Object::Object
Defined in:
lib/cayuga/tools/loggable.rb

Overview

Cayuga Tools Loggable

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/cayuga/tools/loggable.rb', line 10

def self.included(base)
  SemanticLogger::Loggable.included(base)
  base.class_eval do
    class << self
      alias_method :log, :logger
    end

    alias_method :log, :logger

    def self.log_file
      filenamify('.log')
    end

  end
end