| Modifier and Type | Field and Description |
|---|---|
| public static final LoggerContext[] | EMPTY_ARRAY
Empty array. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: The external context.Gets the anchor for some other context, such as a ClassLoader or ServletContext. |
| public default ExtendedLogger | |
| public default ExtendedLogger | Returns: The logger.The Class whose name should be used as the Logger name. cls, MessageFactory The message factory is used only when creating a logger, subsequent use does not change the
logger but will log a warning if mismatched. messageFactory)Gets an ExtendedLogger using the fully qualified name of the Class as the Logger name. |
| public ExtendedLogger | |
| public ExtendedLogger | Returns: The logger with the specified name.The name of the Logger to return. name, MessageFactory The message factory is used only when creating a logger, subsequent use does not change
the logger but will log a warning if mismatched. messageFactory)Gets an ExtendedLogger. |
| public default LoggerRegistry | |
| public default Object | |
| public boolean | |
| public boolean | Returns: true if the Logger exists, false otherwise.The Logger name to search for. name, Class<? extends MessageFactory> The message factory class to search for. messageFactoryClass)Tests if a Logger with the specified name and MessageFactory type exists. |
| public boolean | Returns: true if the Logger exists, false otherwise.The Logger name to search for. name, MessageFactory The message factory to search for. messageFactory)Tests if a Logger with the specified name and MessageFactory exists. |
| public default Object | |
| public default Object | Returns: The previous object or null.The object's key. key, Object The object. value)Associates an object into the LoggerContext by name for later use if an object is not already stored with that key. |
| public default Object | Returns: The object if it was present, null if it was not.The object's key. key)Removes an object if it is present. |
| public default boolean | Returns: The object if it was present, null if it was not.The object's key. key, Object The object. value)Removes an object if it is present and the provided object is stored. |
| EMPTY_ARRAY | back to summary |
|---|---|
| public static final LoggerContext[] EMPTY_ARRAY Empty array. | |
| getExternalContext | back to summary |
|---|---|
| public Object getExternalContext() Gets the anchor for some other context, such as a ClassLoader or ServletContext.
| |
| getLogger | back to summary |
|---|---|
| public default ExtendedLogger getLogger(Class<?> cls) Gets an ExtendedLogger using the fully qualified name of the Class as the Logger name.
| |
| getLogger | back to summary |
|---|---|
| public default ExtendedLogger getLogger(Class<?> cls, MessageFactory messageFactory) Gets an ExtendedLogger using the fully qualified name of the Class as the Logger name.
| |
| getLogger | back to summary |
|---|---|
| public ExtendedLogger getLogger(String name) Gets an ExtendedLogger.
| |
| getLogger | back to summary |
|---|---|
| public ExtendedLogger getLogger(String name, MessageFactory messageFactory) Gets an ExtendedLogger.
| |
| getLoggerRegistry | back to summary |
|---|---|
| public default LoggerRegistry Gets the LoggerRegistry.
| |
| getObject | back to summary |
|---|---|
| public default Object getObject(String key) Gets an object by its name. | |
| hasLogger | back to summary |
|---|---|
| public boolean hasLogger(String name) Tests if a Logger with the specified name exists.
| |
| hasLogger | back to summary |
|---|---|
| public boolean hasLogger(String name, Class<? extends MessageFactory> messageFactoryClass) Tests if a Logger with the specified name and MessageFactory type exists.
| |
| hasLogger | back to summary |
|---|---|
| public boolean hasLogger(String name, MessageFactory messageFactory) Tests if a Logger with the specified name and MessageFactory exists.
| |
| putObject | back to summary |
|---|---|
| public default Object putObject(String key, Object value) Associates an object into the LoggerContext by name for later use. | |
| putObjectIfAbsent | back to summary |
|---|---|
| public default Object putObjectIfAbsent(String key, Object value) Associates an object into the LoggerContext by name for later use if an object is not already stored with that key. | |
| removeObject | back to summary |
|---|---|
| public default Object removeObject(String key) Removes an object if it is present. | |
| removeObject | back to summary |
|---|---|
| public default boolean removeObject(String key, Object value) Removes an object if it is present and the provided object is stored. | |