org.apache.logging.log4j.status
Class StatusConsoleListener

java.lang.Object
  extended by org.apache.logging.log4j.status.StatusConsoleListener
All Implemented Interfaces:
StatusListener

public class StatusConsoleListener
extends Object
implements StatusListener

StatusListener that writes to the Console.


Constructor Summary
StatusConsoleListener()
          Creates the StatusConsoleListener using either the level configured by the "org.apache.logging.log4j.StatusLevel" system property if it is set or to a default value of FATAL.
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 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

StatusConsoleListener

public StatusConsoleListener()
Creates the StatusConsoleListener using either the level configured by the "org.apache.logging.log4j.StatusLevel" system property if it is set or to a default value of FATAL.


StatusConsoleListener

public StatusConsoleListener(Level level)
Creates the StatusConsoleListener using the supplied Level.

Parameters:
level - The Level of status messages that should appear on the console.

StatusConsoleListener

public StatusConsoleListener(Level level,
                             PrintStream stream)
Creates the StatusConsoleListener using the supplied Level.

Parameters:
level - The Level of status messages that should appear on the console.
stream - The PrintStream to write to.
Method Detail

setLevel

public void setLevel(Level level)
Sets the level to a new value.

Parameters:
level - The new Level.

log

public void log(StatusData data)
Writes status messages to the console.

Specified by:
log in interface StatusListener
Parameters:
data - The StatusData.

setFilters

public void setFilters(String... filters)
Adds package name filters to exclude.

Parameters:
filters - An array of package names to exclude.


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.