Friday, May 18, 2012
 
The best way to analyze your logs! Minimize
 Log4Net Mail archive   

The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.

Subject: %l to %level difference..
Prev Next
You are not authorized to post a reply.

Author Messages
nmarun

04/30/2007 7:35 PM  

Hi,

I'm having an trouble with %l and %level specifiers. My
RollingLogFileAppender is as below:

[CODE]

<appender name="RollingLogFileAppender"
type="log4net.Appender.RollingFileAppender">
        <file value="..\\Logs\\CurrentLog.log" />
        <appendToFile value="true" />
        <datePattern value="yyyyMMdd" />
        <rollingStyle value="Date" />
        <filter type="log4net.Filter.LevelRangeFilter">
                <acceptOnMatch value="true" />
                <levelMin value="INFO" />
                <levelMax value="FATAL" />
        </filter>
        <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="%level" />
        </layout>
</appender>
[/CODE]

When i look into the log file, I see a value of:

'Log4NetWeb.Default.Page_Load(c:\arun\testprojects\log4netsamplesolution\log4netweb\default.aspx.cs:39)evel'

It seems like the conversion of %l is occurring first, thus showing the
location and then 'evel' is appended to it. How do I correct it?

Thanks in advance,
Arun
--
View this message in context: http://www.nabble.com/-l-to--level-difference..-tf3670928.html#a10257481
Sent from the Log4net - Users mailing list archive at Nabble.com.

nicko@apache.org

04/30/2007 7:48 PM  

Which version of log4net are you using?

------------
Nicko Cadell
log4net development
http://logging.apache.org/log4net

nmarun

04/30/2007 8:27 PM  

Hi Nick,

I was using an older version. The latest one works perfectly fine. Thanks
again
Arun

You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > %l to %level difference..



ActiveForums 3.7

 

 

 

 

 

 

 

 

Log4Net Dashboard

Log analysis and monitoring made easy!

Log4Net Dashboard is a log viewer that can read log statements from a variety of logging output targets.

You can download a free developer version.

  

Check it out!

On the demonstration site you can try it  with live data.demo.l4ndash.com - Try Log4Net Dashboard with live data

The mail archive is a copy of all the mail sent to the mail address: log4net-user@logging.apache.org, organized as a forum.

If you would like to participate in the mail list, send a mail to log4net-user-subscribe@logging.apache.org.

More information about the mailing list is available on: http://logging.apache.org/log4net/support.html

 

A complete topic list is available and can be viewed here (warning, it takes some time to load)

 

Copyright 2005-2008 by FaktNet AS Terms Of Use Privacy Statement