|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.status.StatusConsoleListener
public class StatusConsoleListener
StatusListener that writes to the Console.
Constructor Summary | |
---|---|
StatusConsoleListener(Level level)
Creates the StatusConsoleListener using the supplied Level. |
|
StatusConsoleListener(Level level,
PrintStream stream)
Creates the StatusConsoleListener using the supplied Level. |
Method Summary | |
---|---|
void |
close()
|
Level |
getStatusLevel()
Return the Log Level for which the Listener should receive events. |
void |
log(StatusData data)
Writes status messages to the console. |
void |
setFilters(String... filters)
Adds package name filters to exclude. |
void |
setLevel(Level level)
Sets the level to a new value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatusConsoleListener(Level level)
level
- The Level of status messages that should appear on the console.public StatusConsoleListener(Level level, PrintStream stream)
level
- The Level of status messages that should appear on the console.stream
- The PrintStream to write to.
IllegalArgumentException
- if the PrintStream argument is null
.Method Detail |
---|
public void setLevel(Level level)
level
- The new Level.public Level getStatusLevel()
getStatusLevel
in interface StatusListener
public void log(StatusData data)
log
in interface StatusListener
data
- The StatusData.public void setFilters(String... filters)
filters
- An array of package names to exclude.public void close() throws IOException
close
in interface Closeable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.