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: How to log from multiple projects using log4net?
Prev Next
You are not authorized to post a reply.

Author Messages
darthBug

05/19/2008 10:53 PM  


Hello,

I'm just starting with log4net and want to know how to log to the same log
from several projects in a solution.
The way i use it in a single project is very easy. Just create a config
file, create ILog object and log away, but i have no idea how that whole
thing works when i have many projects that need to log to the same file.

Another question is can i make the projects share log4net single
configuration file and write to the same log file?
And is it possible to later split the logging to many files?

Thanks,

darthBug


--
View this message in context: http://www.nabble.com/How-to-log-from-multiple-projects-using-log4net--tp17327942p17327942.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

Peter Drier

05/19/2008 11:05 PM  
Hi,

As much as I'm up for helping new folks, there have been a lot of log4net 101 questions in here lately that are answered in the online documentation.. So I'll refer you to those to get you started:

http://logging.apache.org/log4net/release/manual/introduction.html
http://logging.apache.org/log4net/release/manual/configuration.html

They should answer your second and third questions..  To have multiple projects use the same config, add a reference to log4net to all of the projects, and configure the main one (whatever.exe) as you have been previously..  the rest should pick it up automatically..

Cheers,
Peter
You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > How to log from multiple projects using log4net?



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