You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Chenyang Liu (Jira)" <ji...@apache.org> on 2021/03/23 07:30:00 UTC

[jira] [Created] (LOG4NET-662) Appenders close and shutdown too early that make graceful shutdown logs missing

Chenyang Liu created LOG4NET-662:
------------------------------------

             Summary: Appenders close and shutdown too early that make graceful shutdown logs missing
                 Key: LOG4NET-662
                 URL: https://issues.apache.org/jira/browse/LOG4NET-662
             Project: Log4net
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.10
         Environment: Ubuntu 16.04 and dotnet 5
            Reporter: Chenyang Liu


After we upgraded log4net to 2.0.10, we found all the log in IHostedService.StopAsync() are missing. Finally, we found it's because OnProcessExit called too early that before AspNetCore's WebHost gracefully shutdown: [https://github.com/apache/logging-log4net/blob/2b8b17085995f64edb7c5892fb808c6e2af124ec/src/log4net/Core/LoggerManager.cs#L165]

 
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)