Class: Log4r::IOOutputter

Class Log4r::IOOutputter |
In: | /home/cepheus/projects/prep/log4r-1.0.1/src/log4r/outputter/iooutputter.rb
Parent: | Outputter

IO Outputter invokes print then flush on the wrapped IO object. If the IO stream dies, IOOutputter sets itself to OFF and the system continues on its merry way.

To find out why an IO stream died, create a logger named 'log4r' and look at the output.

Methods

close closed? new

Public Class methods

new(_name, _out, hash={})

IOOutputter needs an IO object to write to.

Public Instance methods

closed?()

close()

Close the IO and sets level to OFF