Announcement Announcement Module
Collapse
No announcement yet.
Spring + Log4j + Database Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring + Log4j + Database

    Hi.


    I wanna use log4j for logging in my application but i need to write all logs to a database. The objective is to analyse the performance of my actions (thats another story). I search a lot but all i find is how to write to a file or to the stdout.

    I'm using hibernate, spring and struts2. My application connects to the dabase from a pool configured on the server applications.

    Any idea how to do this? Is possible to implent?

  • #2
    you can try to implement Appender interface on org.apache.log4j.Appender to write all the log into database

    Comment


    • #3
      http://www.dankomannhaupt.de/projects/index.html

      Comment


      • #4
        Thanks for the link, that's quite a nice little feature!
        Last edited by karldmoore; Aug 29th, 2007, 11:21 AM.

        Comment

        Working...
        X