• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Logging when Appservers are clustered.

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

How will log to a particular location in the server, when my

appserver are clustered using Log4J.


Thanks in advance
[ November 02, 2004: Message edited by: Vijayakeerthy Parsuvanath ]
 
author
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the past, I have written an appender that logs to a database. The one included with Log4j has several bugs and a major problem in that it does not support JNDI.

Using a database appender has several advantages. First, it solves the problem of having log files on different machines. Second, it makes searching and evaluating the logs really easy since you can use standard SQL to filter and locate messages.
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think, it's good idea.

How to do that ?


I'm found some link about Log4j JDBCAppender .

http://www.dankomannhaupt.de/projects/
 
Christopher Judd
author
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JDBCAppender is the one with the bugs. But I extended that and fixed the bugs by overriding the buggy methods and then added JNDI support.
 
reply
    Bookmark Topic Watch Topic
  • New Topic