You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Davyd McColl (Jira)" <ji...@apache.org> on 2021/11/02 06:38:00 UTC
[jira] [Commented] (LOG4NET-656) ApplicationInsightsAppender not
logging when method runs in await Task.Run
[ https://issues.apache.org/jira/browse/LOG4NET-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17437149#comment-17437149 ]
Davyd McColl commented on LOG4NET-656:
--------------------------------------
Hi
ApplicationInsightsAppender isn't part of log4net core. I suggest you raise an issue at https://github.com/Microsoft/ApplicationInsights-dotnet
This SO thread also seems to offer some assistance into "missing" logs: https://stackoverflow.com/questions/45078970/application-insights-doesnt-sent-log4net-log-message-with-appended-exception-ob#45217192
> ApplicationInsightsAppender not logging when method runs in await Task.Run
> --------------------------------------------------------------------------
>
> Key: LOG4NET-656
> URL: https://issues.apache.org/jira/browse/LOG4NET-656
> Project: Log4net
> Issue Type: Bug
> Components: Appenders
> Environment: .Net Framework 4.5.1, Microsoft.ApplicationInsigts.Log4NetAppender 2.2.0.0
> Log4Net 2.0.12.0
> Reporter: Anjo Iype Joseph
> Priority: Blocker
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> I tried to call log4net info inside a method that runs within a await Task.Run method. None of the logs inside that method is getting logged in Application insights. I have a file logger attached where all logs are getting logged.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)