Class: Log4r::Outputter

Class Log4r::Outputter |
In: | /home/cepheus/projects/prep/log4r-1.0.1/src/log4r/outputter/staticoutputter.rb /home/cepheus/projects/prep/log4r-1.0.1/src/log4r/outputter/outputterfactory.rb /home/cepheus/projects/prep/log4r-1.0.1/src/log4r/outputter/outputter.rb
Parent: | Object

Methods

[] []= each each_outputter flush formatter= level= new only_at stderr stdout

Attributes

formatter | [R] |
level | [R] |
name | [R] |

Public Class methods

[](name)

Retrieve an outputter.

stdout()

stderr()

[]=(name, outputter)

Set an outputter.

each() {|name, outputter}| ...}

Yields each outputter's name and reference.

each_outputter() {|outputter}| ...}

new(_name, hash={})

An Outputter needs an IO object to write to. The hash arguments are as follows:

`:level`
  Logger level. Optional, defaults to root level
`:formatter`
  A Formatter. Defaults to DefaultFormatter

Public Instance methods

level=(_level)

dynamically change the level

only_at(*levels)

Set the levels to log. All others will be ignored

formatter=(_formatter)

Dynamically change the formatter. You can just specify a Class object and the formatter will invoke `new` or `instance` on it as appropriate.

flush()

Call flush to force an outputter to write out any pending log events.