This post explains how to configure log4net to use a pattern for the
File property of an appender that writes to a file.

http://tinyurl.com/p67at
http://www.mail-archive.com/log4net-user%40logging.apache.org/msg03269.html

I created an issue and checked in some initial code for log4net to
support accessing certain ASP.Net items:

 https://issues.apache.org/jira/browse/LOG4NET-87

Eventually, you'll be able to do something like this:

 <file value="%aspnet-session{sessionId}.log" />

Is this an ok naming convention?

 %aspnet-session{contents:key=ProductId}
 %aspnet-session{contents:count}
 %aspnet-session{sessionId}
 %aspnet-request{items:key=ProductId}
 %aspnet-request{queryString:key=ProductId}
 %aspnet-request{queryString:count} 

--- azure_ss <[EMAIL PROTECTED]> wrote:

> 
> I am learning log4net and want to know how can I config it to create
> log file
> for each web session. say the log file name would be
> log{sessionid}.log
> 
> Can someone give some example?
> Thanks
> 
> Victor
> -- 
> View this message in context:
>
http://www.nabble.com/log-file-for-each-session-tf2005101.html#a5507552
> Sent from the Log4net - Users forum at Nabble.com.
> 
> 

Reply via email to