|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.logging.log4j.core.config.status.StatusConfiguration
public class StatusConfiguration
Configuration for setting up StatusConsoleListener instances.
| Nested Class Summary | |
|---|---|
static class |
StatusConfiguration.Verbosity
Specifies how verbose the StatusLogger should be. |
| Constructor Summary | |
|---|---|
StatusConfiguration()
|
|
| Method Summary | |
|---|---|
void |
error(String message)
Logs an error message to the StatusLogger. |
void |
initialize()
Configures and initializes the StatusLogger using the configured options in this instance. |
StatusConfiguration |
withDestination(String destination)
Specifies the destination for StatusLogger events. |
StatusConfiguration |
withStatus(Level status)
Specifies the logging level to use for filtering StatusLogger messages. |
StatusConfiguration |
withStatus(String status)
Specifies the logging level by name to use for filtering StatusLogger messages. |
StatusConfiguration |
withVerboseClasses(String... verboseClasses)
Specifies which class names to filter if the configured verbosity level is QUIET. |
StatusConfiguration |
withVerbosity(String verbosity)
Specifies the verbosity level to log at. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatusConfiguration()
| Method Detail |
|---|
public void error(String message)
message - error message to log.public StatusConfiguration withDestination(String destination)
out (default) for using
standard out, err for using standard error, or a file URI to
which log events will be written. If the provided URI is invalid, then the default destination of standard
out will be used.
destination - where status log messages should be output.
thispublic StatusConfiguration withStatus(String status)
status - name of logger level to filter below.
thisLevelpublic StatusConfiguration withStatus(Level status)
status - logger level to filter below.
thispublic StatusConfiguration withVerbosity(String verbosity)
verboseClasses.
verbosity - basic filter for status logger messages.
thispublic StatusConfiguration withVerboseClasses(String... verboseClasses)
verboseClasses - names of classes to filter if not using VERBOSE.
thispublic void initialize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1999-2014 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.