logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Grabowski (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4NET-87) Support ASP.Net related PatternConverters to allow items from the HttpContext.Current.Session, Cache, Request, etc. to be captured.
Date Fri, 30 Dec 2011 20:22:30 GMT

    [ https://issues.apache.org/jira/browse/LOG4NET-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177748#comment-13177748
] 

Ron Grabowski commented on LOG4NET-87:
--------------------------------------

Have you tried fixing the fields before sending data to another thread?

http://logging.apache.org/log4net/release/sdk/log4net.Core.FixFlags.html

You'll probably need to tweak your appender to evaluate the values before sending to another
thread. Take a look at BufferingAppenderSkeleton's Fix property:

http://logging.apache.org/log4net/release/sdk/log4net.Appender.BufferingAppenderSkeleton.Fix.html

Hopefully its degrading gracefully.
                
> 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
>
>
> It would be nice if there were built-in Pattern Converters to support core ASP.Net objects:
>  %aspnet-session{UserId}
>  %aspnet-session
>  %aspnet-request{ProductId}
> This issue may be a good time to investigate supporting a more advanced syntax for the
Option parameter:
>  %aspnet-request{queryString:ProductId}
> that could be shared across all Pattern Converters.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message