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:  tag not overriding tag members
Prev Next
You are not authorized to post a reply.

Author Messages
pradeep yanamandra

12/28/2005 8:31 PM  
Hi,
I need help regarding the following problem.
I have the following Log4net Configuration file. The <logger  name="LoggerProviderService"> section is not overriding the <root> section.

 The webservice i am using is taking the root <level value="DEBUG" /> and the root appenders which are console,smtp and RollingLogFileAppender.

 I want my webservice to take <level value="FATAL" /> and console,smtp appenders.
 I have used additivity = "false" still no use.

 Is there any specific name i should give to logger tag<logger name="?">
 
 Any furthur suggestions and comments are welcome.
 Thanks in advance.
 Note : I have included only part of the config file.
 
 <?xml version="1.0" encoding="utf-8" ?>
  
    <root>
      <level value="DEBUG" />
      <appender-ref ref="ConsoleAppender" />
      <appender-ref ref="SmtpAppender" />
      <appender-ref ref="RollingLogFileAppender" />
    </root>
    <logger name="LoggerProviderService">
      <level value="FATAL" />
      <appender-ref ref="ConsoleAppender" />
      <appender-ref ref="SmtpAppender" />
     
    </logger>
  </log4net>
</configuration>


Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
Shireesh Thanneru

12/28/2005 11:12 PM  
You have to use Additivity = false in the config file as well as have your web service get the logger as shown below:
 
ILog log = LogManager.GetLogger("LoggerProviderService");
 
Shireesh
pradeep yanamandra

12/28/2005 11:25 PM  
Thanks Shireesh,
                 That does the magic.
You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > tag not overriding tag members



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