module Sso::Logging

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.

Public Instance Methods

debug(&block) click to toggle source
# File lib/sso/logging.rb, line 38
def debug(&block)
  self.class.debug(&block)
end
error(&block) click to toggle source
# File lib/sso/logging.rb, line 50
def error(&block)
  self.class.error(&block)
end
fatal(&block) click to toggle source
# File lib/sso/logging.rb, line 54
def fatal(&block)
  self.class.fatal(&block)
end
info(&block) click to toggle source
# File lib/sso/logging.rb, line 42
def info(&block)
  self.class.info(&block)
end
warn(&block) click to toggle source
# File lib/sso/logging.rb, line 46
def warn(&block)
  self.class.warn(&block)
end