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: 3rd party assembly logging
Prev Next
You are not authorized to post a reply.

Author Messages
minherz

04/30/2007 12:07 PM  

Hello. I failed finding a clear answer to my question here, though there are
several posts that touching the subject.
I have a set of shared assembly which use log4net. However, the application
does not have to use it as well i do not want that the log4net configuration
of the application will dictate logging behavior of the shared assembly. In
the case the developer wants to output log from the shared assembly he will
have to define a separate configuration file. While the file is not there no
logging should be performed by the shared assembly.
I tried defining XmlConfiguration attribute with explicit config file name
in the AssemblyInfo of my shared library. It is either ignored or does not
work for other reason. All the output is displayed according to root
configuration of the application.
I know that i can filter it out by using logger element, but i have
different requirement.
I found several articles that suggest using in code call for configuration.
My problem is that the shared assembly is a class library which provide a
collection of classes and i have no idea which of them will be created
first. I also can not define some initialization method as it is against the
design requirements.
Can anybody advise how i can solve this matter?
--
View this message in context: http://www.nabble.com/3rd-party-assembly-logging-tf3668813.html#a10251023
Sent from the Log4net - Users mailing list archive at Nabble.com.

You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > 3rd party assembly logging



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