Thanks Shireesh,
That does the magic.
Shireesh Thanneru <[EMAIL PROTECTED]> wrote:
Shireesh Thanneru <[EMAIL PROTECTED]> wrote:
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 <[EMAIL PROTECTED]> wrote: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 = "fa lse" 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" ?><configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<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! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping
