public class StatusConsoleListener extends Object implements StatusListener
| Constructor and Description |
|---|
StatusConsoleListener(Level level)
Creates the StatusConsoleListener using the supplied Level.
|
StatusConsoleListener(Level level,
PrintStream stream)
Creates the StatusConsoleListener using the supplied Level.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.public void setLevel(Level level)
level - The new Level.public Level getStatusLevel()
getStatusLevel in interface StatusListenerpublic void log(StatusData data)
log in interface StatusListenerdata - The StatusData.public void setFilters(String... filters)
filters - An array of package names to exclude.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2006-2016 OPS4J - Open Participation Software for Java. All Rights Reserved.