class Log4r::Logger

Public Class Methods

[](_fullname) click to toggle source

Get a logger with a fullname from the repository or nil if logger wasn’t found.

# File lib/reasonable_log4r/monkey_patch_logger_factory.rb, line 11
def self.[](_fullname)
  # forces creation of RootLogger if it doesn't exist yet.
  if _fullname=='root'
    return RootLogger.instance
  end
  if _fullname=='global'
    return GlobalLogger.instance
  end
  Repository[_fullname]
end
global() click to toggle source

Returns the root logger. Identical to Logger.root

# File lib/reasonable_log4r/monkey_patch_logger_factory.rb, line 6
def self.global; return GlobalLogger.instance end
root() click to toggle source

Returns the root logger. Identical to Logger.global

# File lib/reasonable_log4r/monkey_patch_logger_factory.rb, line 4
def self.root; return RootLogger.instance end