Module: Sso::Logging

Overview

One thing tha bugs me is when I cannot see which part of the code caused a log message. This mixin will include the current class name as Logger ‘progname` so you can show that it in your logfiles.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#debug(&block) ⇒ Object

class_methods



38
39
40
# File 'lib/sso/logging.rb', line 38

def debug(&block)
  self.class.debug(&block)
end

#error(&block) ⇒ Object



50
51
52
# File 'lib/sso/logging.rb', line 50

def error(&block)
  self.class.error(&block)
end

#fatal(&block) ⇒ Object



54
55
56
# File 'lib/sso/logging.rb', line 54

def fatal(&block)
  self.class.fatal(&block)
end

#info(&block) ⇒ Object



42
43
44
# File 'lib/sso/logging.rb', line 42

def info(&block)
  self.class.info(&block)
end

#warn(&block) ⇒ Object



46
47
48
# File 'lib/sso/logging.rb', line 46

def warn(&block)
  self.class.warn(&block)
end