org.objectweb.util.monolog.wrapper.javaLog

Class ConsoleHandler


public class ConsoleHandler
extends java.util.logging.Handler

The aim of this class is to permit to specify the output for the console handler of the java.util.logging system. This console handler is also able to choose the right ouput (System.err or System.out) depending on the message level.

Author:
S.Chassande-Barrioz

Field Summary

protected OutputStreamSwitcher
oss

Constructor Summary

ConsoleHandler()

Method Summary

void
activateSwitching()
void
close()
void
desactivateSwitching(OutputStream newOut)
void
flush()
void
publish(LogRecord record)
void
setOutput(OutputStream out)
Assign the Outputstream by calling a protected method from the super class.

Field Details

oss

protected OutputStreamSwitcher oss

Constructor Details

ConsoleHandler

public ConsoleHandler()

Method Details

activateSwitching

public void activateSwitching()


close

public void close()
            throws SecurityException


desactivateSwitching

public void desactivateSwitching(OutputStream newOut)


flush

public void flush()


publish

public void publish(LogRecord record)


setOutput

public void setOutput(OutputStream out)
            throws SecurityException
Assign the Outputstream by calling a protected method from the super class.