tyrex.util.logging
Class LoggerPrintWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.PrintWriter
          extended bytyrex.util.logging.LoggerPrintWriter

public final class LoggerPrintWriter
extends java.io.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

Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
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
 void print(boolean value)
           
 void print(char value)
           
 void print(char[] value)
           
 void print(double value)
           
 void print(float value)
           
 void print(int value)
           
 void print(long value)
           
 void print(java.lang.Object value)
           
 void print(java.lang.String value)
           
 void println()
           
 void println(boolean value)
           
 void println(char value)
           
 void println(char[] value)
           
 void println(double value)
           
 void println(float value)
           
 void println(int value)
           
 void println(long value)
           
 void println(java.lang.Object value)
           
 void println(java.lang.String value)
           
 
Methods inherited from class java.io.PrintWriter
checkError, close, flush, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

println

public void println()

println

public void println(boolean value)

print

public void print(boolean value)

println

public void println(char value)

print

public void print(char value)

println

public void println(int value)

print

public void print(int value)

println

public void println(long value)

print

public void print(long value)

println

public void println(float value)

print

public void print(float value)

println

public void println(double value)

print

public void print(double value)

println

public void println(char[] value)

print

public void print(char[] value)

println

public void println(java.lang.String value)

print

public void print(java.lang.String value)

println

public void println(java.lang.Object value)

print

public void print(java.lang.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.