3 Jan 2012 09:04
[jira] [Commented] (LOG4NET-87) Support ASP.Net related PatternConverters to allow items from the HttpContext.Current.Session, Cache, Request, etc. to be captured.
Martin Meixger (Commented) (JIRA <jira <at> apache.org>
2012-01-03 08:04:20 GMT
2012-01-03 08:04:20 GMT
[
https://issues.apache.org/jira/browse/LOG4NET-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178658#comment-13178658
]
Martin Meixger commented on LOG4NET-87:
---------------------------------------
The AspNetPatternLayoutConverter retrieves the HttpContext.Current properties only when the
LoggingEvent gets rendered via Format().
Unforunately this is much later and in another thread as the fixing of the fields and ThreadProperties.
I see no other way than copying the interested HttpContext properties manually into the ThreadProperties.
> Support ASP.Net related PatternConverters to allow items from the HttpContext.Current.Session,
Cache, Request, etc. to be captured.
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: LOG4NET-87
> URL: https://issues.apache.org/jira/browse/LOG4NET-87
> Project: Log4net
> Issue Type: Wish
> Components: Core
> Affects Versions: 1.2.10
> Reporter: Ron Grabowski
> Assignee: Ron Grabowski
> Priority: Minor
> Fix For: 1.2.11
>
(Continue reading)
RSS Feed