System#err.
Normally, the Log4j StatusLogger is configured via the root <Configuration status="LEVEL"/> node in a Log4j
configuration file. However, this can be overridden via a system property named
log4j2.StatusLogger.level and will work with any Log4j provider.
SimpleLogger, SimpleLoggerContext
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final boolean | |
| private static final String | |
| public static final String | DEFAULT_STATUS_LISTENER_LEVEL
System property that can be configured with the |
| private final Collection | |
| private int | |
| private final ReadWriteLock | |
| private final SimpleLogger | |
| private static final int | |
| public static final String | MAX_STATUS_ENTRIES
System property that can be configured with the number of entries in the queue. |
| private final Queue | |
| private final Lock | |
| private static final String | |
| pack-priv static final PropertiesUtil | |
| private static final long | |
| public static final String | STATUS_DATE_FORMAT
System property that can be configured with a date-time format string to use as the format for timestamps in the status logger output. |
| private static final StatusLogger |
| Access | Constructor and Description |
|---|---|
| private | StatusLogger(final String
The logger name. name, final MessageFactory The message factory. messageFactory, final SimpleLoggerFactory loggerFactory)Constructs the singleton instance for the STATUS_LOGGER constant. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static void | |
| public Level | getLevel()
Implements org. Gets the Level associated with the Logger. |
| public Iterable | Returns: An Iterable for the list of StatusListeners.Returns a thread safe Iterable for the StatusListener. |
| public static StatusLogger | |
| private StackTraceElement | |
| public List | Returns: The list of StatusData objects.Returns a List of all events as StatusData objects. |
| public boolean | |
| public boolean | isEnabled(final Level
The logging Level to check. level, final Marker A Marker or null. marker, final String The message. message)Implements org. Tests if logging is enabled. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isEnabled(final Level
The logging Level to check. level, final Marker A Marker or null. marker, final String The message. message, final Object the message parameters p0, final Object the message parameters p1, final Object the message parameters p2)Implements org. Tests if logging is enabled. |
| public boolean | isEnabled(final Level
The logging Level to check. level, final Marker A Marker or null. marker, final String The message. message, final Object the message parameters p0, final Object the message parameters p1, final Object the message parameters p2, final Object the message parameters p3)Implements org. Tests if logging is enabled. |
| public boolean | isEnabled(final Level
The logging Level to check. level, final Marker A Marker or null. marker, final String The message. message, final Object the message parameters p0, final Object the message parameters p1, final Object the message parameters p2, final Object the message parameters p3, final Object the message parameters p4)Implements org. Tests if logging is enabled. |
| public boolean | isEnabled(final Level
The logging Level to check. level, final Marker A Marker or null. marker, final String The message. message, final Object the message parameters p0, final Object the message parameters p1, final Object the message parameters p2, final Object the message parameters p3, final Object the message parameters p4, final Object the message parameters p5)Implements org. Tests if logging is enabled. |
| public boolean | isEnabled(final Level
The logging Level to check. level, final Marker A Marker or null. marker, final String The message. message, final Object the message parameters p0, final Object the message parameters p1, final Object the message parameters p2, final Object the message parameters p3, final Object the message parameters p4, final Object the message parameters p5, final Object the message parameters p6)Implements org. Determines if logging is enabled. |
| public boolean | isEnabled(final Level
The logging Level to check. level, final Marker A Marker or null. marker, final String The message. message, final Object the message parameters p0, final Object the message parameters p1, final Object the message parameters p2, final Object the message parameters p3, final Object the message parameters p4, final Object the message parameters p5, final Object the message parameters p6, final Object the message parameters p7)Implements org. Tests if logging is enabled. |
| public boolean | isEnabled(final Level
The logging Level to check. level, final Marker A Marker or null. marker, final String The message. message, final Object the message parameters p0, final Object the message parameters p1, final Object the message parameters p2, final Object the message parameters p3, final Object the message parameters p4, final Object the message parameters p5, final Object the message parameters p6, final Object the message parameters p7, final Object the message parameters p8)Implements org. Tests if logging is enabled. |
| public boolean | isEnabled(final Level
The logging Level to check. level, final Marker A Marker or null. marker, final String The message. message, final Object the message parameters p0, final Object the message parameters p1, final Object the message parameters p2, final Object the message parameters p3, final Object the message parameters p4, final Object the message parameters p5, final Object the message parameters p6, final Object the message parameters p7, final Object the message parameters p8, final Object the message parameters p9)Implements org. Tests if logging is enabled. |
| public boolean | isEnabled(final Level
The logging Level to check. level, final Marker A Marker or null. marker, final CharSequence The message. message, final Throwable A Throwable. t)Implements org. Tests if logging is enabled. |
| public boolean | |
| public boolean | |
| public boolean | isEnabled(final Level
The Level to check level, final Marker The Marker to check marker)Overrides org. Implements org. Checks whether this Logger is enabled for the given Level and Marker. |
| public void | logMessage(final String
The fully qualified class name of the caller fqcn, final Level The logging level level, final Marker The Marker marker, final Message The message associated with the event. msg, final Throwable A Throwable or null. t)Implements org. Adds an event. |
| public void | registerListener(final StatusListener
The StatusListener to register. listener)Registers a new listener. |
| public void | |
| public void | |
| public void | |
| public void |