class Log4r::GlobalLogger
Public Class Methods
new()
click to toggle source
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 41 def initialize Log4r.define_levels(*Log4rConfig::LogLevels) # ensure levels are loaded @level = ALL @outputters = [] Repository['global'] = self LoggerFactory.undefine_methods(self) end
Public Instance Methods
add(*foo)
click to toggle source
Does nothing
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 63 def add(*foo); end
additive=(foo)
click to toggle source
Does nothing
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 61 def additive=(foo); end
is_root?()
click to toggle source
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 49 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 54 def level=(alevel); @level = alevel end
outputters=(foo)
click to toggle source
Does nothing
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 57 def outputters=(foo); end
remove(*foo)
click to toggle source
Does nothing
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 65 def remove(*foo); end
trace=(foo)
click to toggle source
Does nothing
# File lib/reasonable_log4r/monkey_patch_log4r.rb, line 59 def trace=(foo); end