class Log4r::RootLogger

Public Class Methods

new() click to toggle source
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 6
def initialize
  Log4r.define_levels(*Log4rConfig::LogLevels) # ensure levels are loaded
  @level = ALL
  @outputters = []
  Repository['root'] = self
  LoggerFactory.define_methods(self)
end

Public Instance Methods

add(*foo) click to toggle source
Calls superclass method
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 30
def add(*foo)
  super
end
additive=(foo) click to toggle source

Does nothing

# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 22
def additive=(foo); end
is_root?() click to toggle source
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 14
def is_root?; true end
level=(alevel) click to toggle source

Set the global level. Any loggers defined thereafter will not log below the global level regardless of their levels.

# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 19
def level=(alevel); @level = alevel end
outputters=(foo) click to toggle source
Calls superclass method
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 24
def outputters=(foo)
  super
end
remove(*foo) click to toggle source
Calls superclass method
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 33
def remove(*foo)
  super
end
trace=(foo) click to toggle source
Calls superclass method
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 27
def trace=(foo)
  super
end