Saturday, February 04, 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: Using Log4Net for Distributed Logging
Prev Next
You are not authorized to post a reply.

Author Messages
Deep George

02/03/2009 7:10 AM  


Hi,

 I am relatively new to Log4Net.
 I would like to know whether Log4Net can be used for logging in a
distributed environment.

 I am looking at 2 scenarios-
 Scenario 1:
 A 20 server site. One of the server takes care of logging (Logging Server).
 Every other servers pushes the log information to this centralized logging
server.
 Which appender can i use ? (RemoteAppender?)

 Scenario 2:
 Here, there are 2 processes (Process A, Process B) running on the same
host, using log4Net for logging.
 Is it possible for both the processes to share the log?
 Let say, both the processes use LogFileAppender, will they be able to share
the same log file?

 Also, please suggest a good link/book about distributed logging using
Log4Net.

 Thanks.

Ron Grabowski

02/04/2009 3:52 AM  

I'd start out using the remoting appender.

If you want two processes to share the same log file you'll need to change the locking mechanism from the default ExclusiveLock to MinimalLock. Other alternatives include writing to real database server that can handle the concurrency. Someone posted a MutextLock to the list a while ago. I'm in the process of rewriting it to be included in the log4net distribution because the author didn't post any comments on where the code from or if it was ok to ship with log4net.

You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > Using Log4Net for Distributed 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