tyrex.util.logging

Class LoggerPrintWriter

public final class LoggerPrintWriter extends PrintWriter

Print writer using a Log4J category. Connectors and other J2EE service providers require a PrintWriter in order to log messages. This object provides an implementation of PrintWriter that logs the message to an underlying Log4J category.

Version: $Revision: 1.1 $ $Date: 2004/05/06 06:04:41 $

Author: Assaf Arkin

Constructor Summary
LoggerPrintWriter(Category category, Priority priority)
Constructs a new print writer using the underlying Log4J category.
LoggerPrintWriter(Category category, Priority priority, boolean lineNumbers)
Constructs a new print writer using the underlying Log4J category.
Method Summary
voidprint(boolean value)
voidprint(char value)
voidprint(int value)
voidprint(long value)
voidprint(float value)
voidprint(double value)
voidprint(char[] value)
voidprint(String value)
voidprint(Object value)
voidprintln()
voidprintln(boolean value)
voidprintln(char value)
voidprintln(int value)
voidprintln(long value)
voidprintln(float value)
voidprintln(double value)
voidprintln(char[] value)
voidprintln(String value)
voidprintln(Object value)

Constructor Detail

LoggerPrintWriter

public LoggerPrintWriter(Category category, Priority priority)
Constructs a new print writer using the underlying Log4J category.

Parameters: category A Log4J category to use for logging priority A Log4J priority, or null for the default

LoggerPrintWriter

public LoggerPrintWriter(Category category, Priority priority, boolean lineNumbers)
Constructs a new print writer using the underlying Log4J category.

Parameters: category A Log4J category to use for logging priority A Log4J priority, or null for the default lineNumbers True if line numbers should be printed

Method Detail

print

public void print(boolean value)

print

public void print(char value)

print

public void print(int value)

print

public void print(long value)

print

public void print(float value)

print

public void print(double value)

print

public void print(char[] value)

print

public void print(String value)

print

public void print(Object value)

println

public void println()

println

public void println(boolean value)

println

public void println(char value)

println

public void println(int value)

println

public void println(long value)

println

public void println(float value)

println

public void println(double value)

println

public void println(char[] value)

println

public void println(String value)

println

public void println(Object value)
Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.