Log4j 2
  1. Log4j 2
  2. LOG4J2-318

On termination Log4j terminates before the application

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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.

      1. test.zip
        732 kB
        Maurizio Sartori

        Activity

        Maurizio Sartori created issue -
        Maurizio Sartori made changes -
        Field Original Value New Value
        Attachment test.zip [ 12593336 ]
        Ralph Goers made changes -
        Assignee Ralph Goers [ ralph.goers@dslextreme.com ]
        Ralph Goers made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0-beta9 [ 12324756 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Ralph Goers
            Reporter:
            Maurizio Sartori
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development