gnu.mail.util

Class PrintStreamLogger


public class PrintStreamLogger
extends Logger

A logger that writes to the specified print stream.

Constructor Summary

PrintStreamLogger(PrintStream out)
Constructor.

Method Summary

void
config(String message)
void
error(String protocol, Throwable t)
PrintStream
getPrintStream()
Returns the underlying print stream used by this logger.
void
log(String protocol, String message)

Constructor Details

PrintStreamLogger

public PrintStreamLogger(PrintStream out)
Constructor.

Parameters:
out - the underlying print stream to write to

Method Details

config

public void config(String message)


error

public void error(String protocol,
                  Throwable t)


getPrintStream

public PrintStream getPrintStream()
Returns the underlying print stream used by this logger.


log

public void log(String protocol,
                String message)