-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: log4j log to database with hibernate
PostPosted: Tue Feb 20, 2007 1:02 am 
Newbie

Joined: Tue Feb 20, 2007 12:50 am
Posts: 2
hi all

i'm starting a new java project at work, and really very much referencing an older project written by someone else (as i studied java four years ago, and that was the last time i actually did any programming with it), so i'm just catching up now

anyway, the application (web) uses tapestry, and hibernate 3, log4j (1.2.xx) for logging, mssql server for the db

this new project i'm working on requires some logging to go directly to the database

i've looked this up on the log4j site, and am able to log a basic message to the database using jdbcappender

i want to do something a bit more complex though, and parse the message that gets logged, so that i can store the message appropriately

i've looked up, and read the info on http://www.hibernate.org/97.html

but i'm not really sure how to implement this
i've tried exactly the same code, but with implementing class files for the interfaces (the methods have no bodies), but i get a class not found exception when i try to test it out (the .class file is there, and it's a part of the package)
Code:
log4j:ERROR Could not instantiate class [HibernateAppender].
java.lang.ClassNotFoundException: HibernateAppender


can anyone offer some advice?

thanks
dave


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.