Module: Log

Included in:
Localization
Defined in:
lib/RubyExt/Log.rb,
lib/RubyExt/Log.rb

Defined Under Namespace

Modules: ClassMethods

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.loggersObject (readonly)

Returns the value of attribute loggers.



27
28
29
# File 'lib/RubyExt/Log.rb', line 27

def loggers
  @loggers
end

Class Method Details

.error(*s) ⇒ Object



33
34
35
# File 'lib/RubyExt/Log.rb', line 33

def error *s
	log.error *s
end

.info(*s) ⇒ Object



29
30
31
# File 'lib/RubyExt/Log.rb', line 29

def info *s
	log.info *s
end

.logObject



41
42
43
# File 'lib/RubyExt/Log.rb', line 41

def log
	Log.loggers[Log]
end

.warn(*s) ⇒ Object



37
38
39
# File 'lib/RubyExt/Log.rb', line 37

def warn *s
	log.warn *s
end

Instance Method Details

#logObject



22
23
24
# File 'lib/RubyExt/Log.rb', line 22

def log
	Log.loggers[(self.class == Class or self.class == Module) ? self : self.class]
end