Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

enterprise logging in a distributed enviornment.

 
Srinivas Ramgopal
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

In a distributed j2ee application wherein clustering/components on different servers and multithreading is involved, is there a way to design a global enterprise/application level logging to a single global file.

In general, is it okay to club the application log file with database audit logging.

Your thoughts are highly appreciated.

Thanks in advance for your valuable time and interest.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, a database-based log would be a good idea if you need a single log file across the cluster. Log4J, for example, has a JDBC Appender that does just that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic