Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-318

On termination Log4j terminates before the application

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta8
    • Fix Version/s: 2.0-beta9
    • Component/s: Core
    • Labels:

      Description

      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.

        Attachments

        1. test.zip
          732 kB
          Maurizio Sartori

          Activity

            People

            • Assignee:
              ralph.goers@dslextreme.com Ralph Goers
              Reporter:
              masar Maurizio Sartori
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: