-->
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.  [ 2 posts ] 
Author Message
 Post subject: log4j configuration for hibernate
PostPosted: Mon Aug 14, 2006 11:13 am 
Newbie

Joined: Thu Mar 30, 2006 2:54 am
Posts: 11
I try configure log4j.properties file for output to file.

og4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=hibernate.log

This file "hibernate.log" is created wherever on the disk (install directory my development software Eclipse), but I want create file for ex. within same directory like this log4j.properties is stored. I try some path modification, but unsuccessfully...


Top
 Profile  
 
 Post subject: Use Unix-style slashes to specify your path
PostPosted: Wed Aug 23, 2006 3:24 pm 
Newbie

Joined: Thu Dec 08, 2005 3:54 pm
Posts: 11
For example, to put the log in the directory /my/temp_dir with a name of mylog.txt, use this:

log4j.appender.fileAppender.File=/my/temp_dir/mylog.txt

even if you're running on a Windows machine, still use this style of slashes when specifying your path


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.