LoggerStream instead.public class CategoryStream extends PrintStream
This class is used to map PrintStream/PrintWriter oriented logging onto the log4j Categories. Examples include capturing System.out/System.err
| Modifier and Type | Field and Description |
|---|---|
static boolean |
TRACE
Deprecated.
Default flag to enable/disable tracing println calls.
|
out| Constructor and Description |
|---|
CategoryStream(org.apache.log4j.Category category)
Deprecated.
Redirect logging to the indicated category using Priority.INFO
|
CategoryStream(org.apache.log4j.Category category,
org.apache.log4j.Priority priority,
PrintStream ps)
Deprecated.
Redirect logging to the indicated category using the given
priority.
|
| Modifier and Type | Method and Description |
|---|---|
void |
println(Object msg)
Deprecated.
|
void |
println(String msg)
Deprecated.
|
void |
write(byte b)
Deprecated.
|
void |
write(byte[] b,
int off,
int len)
Deprecated.
|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, setError, writewritepublic static final boolean TRACE
public CategoryStream(org.apache.log4j.Category category)
category - the categorypublic CategoryStream(org.apache.log4j.Category category,
org.apache.log4j.Priority priority,
PrintStream ps)
category - the categorypriority - the priorityps - the print streampublic void println(String msg)
println in class PrintStreampublic void println(Object msg)
println in class PrintStreampublic void write(byte b)
public void write(byte[] b,
int off,
int len)
write in class PrintStreamCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.