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.  [ 3 posts ] 
Author Message
 Post subject: log4j.properties configuration
PostPosted: Mon Dec 11, 2006 6:09 am 
Newbie

Joined: Sat Dec 02, 2006 4:23 am
Posts: 17
Hi all,
Iam new in using hibernate.Can anyone giv me an idea about how to get the logged events in a text file.I placed log4j.properties files in my class path.Here is the code snippet.
Code:
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=hibernate.log 
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n


After doing this what i have to do?

Thanx,
Jasmine


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 11, 2006 9:42 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
http://logging.apache.org/log4j/docs/manual.html


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 12, 2006 3:52 am 
Newbie

Joined: Sat Dec 02, 2006 4:23 am
Posts: 17
Thanx for ur reply.I cleared that mistake & now its working nice.that url is also useful for me.

regards,
jasmine


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

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.