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

On termination Log4j terminates before the application

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0-beta8
    • 2.0-beta9
    • Core

    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

            rgoers Ralph Goers
            masar Maurizio Sartori
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: