[
https://issues.apache.org/jira/browse/LOG4J2-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13714438#comment-13714438
]
Nick Williams edited comment on LOG4J2-318 at 7/20/13 2:39 PM:
---------------------------------------------------------------
Agreed. I believe we need the following two configuration options. It seems to
me that both should be attributes in the {{<configuration>}} root element,
_unless_ JMX has other configuration options (in which case it should get its
own {{<Jmx>}} sub-element).
{{<enableShutdownHook> <=> <quote> [ true | false ] <quote>}} (default true)
{{<enableJmx> <=> <quote> [ true | false ] <quote>}} (default true)
My $0.02.
was (Author: beamerblvd):
Agreed. I believe we need the following two configuration options. It seems
to me that both should be attributes in the {{<configuration>}} root element,
_unless_ JMX has other configuration options (in which case it should get its
own {{<Jmx>}} sub-element).
{{<enableShutdownHook> <=> <quote> [ true | false ] <quote>}} (default true)
{{<enableJmx> <=> <quote> [ true | false ] <quote>}} (default false)
My $0.02.
> On termination Log4j terminates before the application
> ------------------------------------------------------
>
> Key: LOG4J2-318
> URL: https://issues.apache.org/jira/browse/LOG4J2-318
> Project: Log4j 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0-beta8
> Reporter: Maurizio Sartori
> Labels: shutdown
> Attachments: test.zip
>
>
> My application is multi-threaded, when Ctrl-C is pressed to terminate it,
> Log4J ShutdownHooks in LoggerContext are called to close the appenders, so I
> lost any log that the application does during its termination.
> What I think I need, is a way to disable the automatic close done by
> LoggerContext and a way to call the close by myself.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]