-->
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: DIRECTORY FOR LOG4J HELP ME
PostPosted: Sat Nov 25, 2006 8:32 am 
Newbie

Joined: Wed Oct 04, 2006 2:57 am
Posts: 4
Hi,
I have a problem.
I use Hibernate and i have 1000000000 log on console :)
I don't want this.
Where i can place the LOG4J file?

I have another problem.
If i want my file log4j in another directory for example c:\ROME...
Where i can specify the directory?
I don't want use class directory.
Thank's.

Marco


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 25, 2006 7:12 pm 
Newbie

Joined: Sat Nov 25, 2006 2:56 pm
Posts: 11
If you mean the log4j.properties file, you put in the base directory for your code. If you're using an IDE that copies files in your source directories over, then if your mypack.SomeClass class is at C:/Code/mypack/SomeClass.java, then the log4j properties file should be at C:/Code/log4j.properties.

If that doesn't work, try copying it to a similar location only look for SomeClass.class and figure the directory out from there.

If you don't want to put it in the same directory as you code...I, umh, don't know how to do that.


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.