You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2017/07/01 12:25:00 UTC
[jira] [Reopened] (LOG4J2-1801) Add more detail to WARN Ignoring
log event after log4j was shut down
[ https://issues.apache.org/jira/browse/LOG4J2-1801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Remko Popma reopened LOG4J2-1801:
---------------------------------
> Add more detail to WARN Ignoring log event after log4j was shut down
> --------------------------------------------------------------------
>
> Key: LOG4J2-1801
> URL: https://issues.apache.org/jira/browse/LOG4J2-1801
> Project: Log4j 2
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.8
> Reporter: Remko Popma
> Assignee: Remko Popma
> Fix For: 2.9
>
>
> Currently, AsyncLoggerConfigDisruptor::enqueueEvent, AsyncLoggerDisruptor::tryPublish and AsyncLoggerDisruptor::enqueueLogMessageInfo catch exceptions when logging occurs after the context has been stopped.
> These errors are currently handled by logging to the status logger:
> {code}
> LOGGER.warn("Ignoring log event after log4j was shut down.", contextName);
> {code}
> This can be improved by adding more details from the LogEvent that is being dropped:
> {code}
> LOGGER.warn("Ignoring log event after log4j was shut down: {} [{}] {}", event.getLevel(),
> event.getLoggerName(), event.getMessage().getFormattedMessage()
> + (event.getThrown() == null ? "" : Throwables.toStringList(event.getThrown())));
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)