Class: Log4r::RootLogger

### Home Classes Methods

### In Files

- lib/log4r/logger.rb

### Parent

Log4r::Logger

### Methods

- ::new
- #add
- #additive=
- #is_root?
- #level=
- #outputters=
- #remove
- #trace=

### Included Modules

- Singleton

### Files

- GDC
- MDC
- NDC
- configurator
- emailoutputter
- formatter
- log4jxmlformatter
- log4r
- logger
- logserver
- outputter
- patternformatter
- scribeoutputter
- syslogoutputter
- win32eventoutputter
- yamlconfigurator

### Class/Module Index

Quicksearch

- Log4r
- Log4r::BasicFormatter
- Log4r::ConfigError
- Log4r::Configurator
- Log4r::DateFileOutputter
- Log4r::DefaultFormatter
- Log4r::EmailOutputter
- Log4r::FileOutputter
- Log4r::Formatter
- Log4r::GDC
- Log4r::IOOutputter
- Log4r::Log4jXmlFormatter
- Log4r::Log4rTools
- Log4r::LogEvent
- Log4r::LogServer
- Log4r::Logger
- Log4r::MDC
- Log4r::NDC
- Log4r::ObjectFormatter
- Log4r::Outputter
- Log4r::PatternFormatter
- Log4r::RemoteOutputter
- Log4r::RollingFileOutputter
- Log4r::RootLogger
- Log4r::ScribeOutputter
- Log4r::SimpleFormatter
- Log4r::StderrOutputter
- Log4r::StdoutOutputter
- Log4r::SyslogOutputter
- Log4r::UDPOutputter
- Log4r::YamlConfigurator
- REXML
- Object

No matching classes.

# Log4r::RootLogger

RootLogger should be retrieved with Logger.root or Logger.global. It's supposed to be transparent.

### Public Class Methods

new() click to toggle source

    # File lib/log4r/logger.rb, line 172
    def initialize
      Log4r.define_levels(*Log4rConfig::LogLevels) # ensure levels are loaded
      @level = ALL
      @outputters = []
      Repository['root'] = self
      Repository['global'] = self
      LoggerFactory.undefine_methods(self)
    end

### Public Instance Methods

add(*foo) click to toggle source

Does nothing

    # File lib/log4r/logger.rb, line 195
    def add(*foo); end

additive=(foo) click to toggle source

Does nothing

    # File lib/log4r/logger.rb, line 193
    def additive=(foo); end

is_root?() click to toggle source

    # File lib/log4r/logger.rb, line 181
    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/log4r/logger.rb, line 186
    def level=(alevel); @level = alevel end

outputters=(foo) click to toggle source

Does nothing

    # File lib/log4r/logger.rb, line 189
    def outputters=(foo); end

remove(*foo) click to toggle source

Does nothing

    # File lib/log4r/logger.rb, line 197
    def remove(*foo); end

trace=(foo) click to toggle source

Does nothing

    # File lib/log4r/logger.rb, line 191
    def trace=(foo); end

[Validate]

Generated with the Darkfish Rdoc Generator 2.