Wednesday, March 10, 2010
 
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: log4net query
Prev Next
You are not authorized to post a reply.

Author Messages
Ranjan, Bibhakar

01/27/2009 12:39 PM  

Hello,

 

I have two applications let’s say WindowApp1 and WindowApp2 and both are writing to the same log file let’s say “c:\abc.txt”.

With log4net can it be possible to write to the same log file by both these app at the same time? I tried but couldn’t able to do that.

Please help!!

 

Thanks,

Bibhakar

 

Johannes Frank

01/27/2009 1:12 PM  

Since Files can only be write-opened once at a time, this sounds technically impossible.. if you want such a thing you should create your own appender that communicates with a seperate process that manages the request merging (so that only this process is writing to the file, therefore circumventing multiple write-handler requests from the actual logging software)

Mit freundlichen Grüßen / Regards
Johannes Frank
Radovan Raszka

01/27/2009 1:25 PM  
Or use diferent log storage, which allows concurent usage - for example database with AdoNetAppender.
Radovan
Stefan Bodewig

01/27/2009 1:32 PM  

On 2009-01-27, <Johannes.Frank@kisters.de> wrote:

> if you want such a thing you should create your own appender that
> communicates with a seperate process that manages the request
> merging (so that only this process is writing to the file, therefore
> circumventing multiple write-handler requests from the actual
> logging software)

That would be the remoting appender.

See also
<http://logging.apache.org/log4net/release/faq.html#How%20do%20I%20get%20multiple%20process%20to%20log%20to%20the%20same%20file?>
for a different option.

Stefan

You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > log4net query



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