You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Ron Grabowski (JIRA)" <ji...@apache.org> on 2006/07/28 04:55:13 UTC

[jira] Created: (LOG4NET-87) Support ASP.Net related PatternConverters to allow items from the HttpContext.Current.Session, Cache, Request, etc. to be captured.

Support ASP.Net related PatternConverters to allow items from the HttpContext.Current.Session, Cache, Request, etc. to be captured.
-----------------------------------------------------------------------------------------------------------------------------------

                 Key: LOG4NET-87
                 URL: http://issues.apache.org/jira/browse/LOG4NET-87
             Project: Log4net
          Issue Type: Wish
          Components: Core
    Affects Versions: 1.2.11
            Reporter: Ron Grabowski
         Assigned To: Ron Grabowski
            Priority: Minor


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 contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (LOG4NET-87) Support ASP.Net related PatternConverters to allow items from the HttpContext.Current.Session, Cache, Request, etc. to be captured.

Posted by "Stefan Bodewig (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LOG4NET-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12868156#action_12868156 ] 

Stefan Bodewig commented on LOG4NET-87:
---------------------------------------

What is needed to close this?

[for those who like me just look at the comment thread rather than the linked subversion commits, Ron has already implemented the ideas]


> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (LOG4NET-87) Support ASP.Net related PatternConverters to allow items from the HttpContext.Current.Session, Cache, Request, etc. to be captured.

Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ron Grabowski updated LOG4NET-87:
---------------------------------

        Fix Version/s: 1.2.11
    Affects Version/s:     (was: 1.2.11)
                       1.2.10

> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (LOG4NET-87) Support ASP.Net related PatternConverters to allow items from the HttpContext.Current.Session, Cache, Request, etc. to be captured.

Posted by "Nicko Cadell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LOG4NET-87?page=comments#action_12424682 ] 
            
Nicko Cadell commented on LOG4NET-87:
-------------------------------------

Gert,

I think these patterns are a very god idea. I have a few suggestions on how to polish them up for release:


The copyright year in the file header should reflect the years when the file contents is edited, i.e. for the new files it should be 2006.

All classes and methods should have user level comments. See other pattern files for examples.

The new patterns added to the PatternLayout should be documented in detail in the PatternLayout <remarks> section.

Is there any reason why you have not added a pattern for the AspNetSessionPatternConverter? aspnet-session?

The System.Web library isn't available on all platforms, you will need to exclude your new patterns from the build, and from the PatternLayout:

// .NET Compact Framework 1.0 has no support for ASP.NET
// SSCLI 1.0 has no support for ASP.NET
#if !NETCF && !SSCLI



> Support ASP.Net related PatternConverters to allow items from the HttpContext.Current.Session, Cache, Request, etc. to be captured.
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-87
>                 URL: http://issues.apache.org/jira/browse/LOG4NET-87
>             Project: Log4net
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.2.11
>            Reporter: Ron Grabowski
>         Assigned To: Ron Grabowski
>            Priority: Minor
>
> 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 contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira