This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Using Log4J to log to database, involving JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Using Log4J to log to database, involving JMS" Watch "Using Log4J to log to database, involving JMS" New topic
Author

Using Log4J to log to database, involving JMS

Priyaa V Kumar
Ranch Hand

Joined: Aug 12, 2004
Posts: 32
Hi,

A requirement has come up and we want to build a logging server that actually performs the database write. Previously we had been logging to the file and it was working perfectly fine for web based application too.

We want to take one step further and log to db so that querying specific info as part of MIS and reporting would be easier.

We used Log4j to log to file and would continue to use Log4J for db logging too. We would like to take the logging as an asynchronous process thru jms so that performance wd not get affected.

I see that there are classes like xxxAppender for various types of logging.

Has anyone implemented this type of db logging? If so, can u throw some light on how you approached it etc.

Thanks
 
jQuery in Action, 2nd edition
 
subject: Using Log4J to log to database, involving JMS
 
Similar Threads
ejb and web app. logging with log4j
Capturing the changes made to file(s) in a directory
ServletContext.log Vs log4j
Can Log4j read two properties?
J2EE and Logging