Results 1 to 2 of 2
Thread: svn and configuration files
- 08-20-2008, 06:54 PM #1
Member
- Join Date
- Aug 2008
- Posts
- 1
- Rep Power
- 0
svn and configuration files
Hi all,
Pretty new to Java. I have a question about configuration files and svn.
I checked out code from my company's svn repository. I find that I don't like the log4j.properties that's in trunk; it doesn't give enough information. I wrote my own, but I don't really know how to use it.
Clearly I can't overwrite what's in the repository.
I tried renaming my hacked file to myLog4j.conf, and in Eclipse's Run | Arguments | VM Arguments, I used:
-Dlog4j.configuration=myLog4j.conf
but unfortunately, log4j doesn't seem to find it (I get that "please properly initialize the lo4j system" message that it prints when there's no properties file.
Even though this doesn't seem to work, is this the right approach to using local conf files that come from a company's svn?
If so, any ideas why log4j can't find my hacked file? I put the hacked file in the same directory (~project/trunk/conf) that the original log4j.properties file was in, so it was definitely in the classpath.
Thanks!
- 08-21-2008, 04:14 AM #2
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
I believe it is not related to a SVN issue. It just that the log4j doesn't find the configuration file. Have you tried for instance using a full path to your myLog4j.conf for the log4j.configuration.
The easies way I can think of is by putting the configuration file in the output path, in the root folder of your compiled java classes. Have you tried this?Website: Learn Java by Examples
Similar Threads
-
How to use XML-based configuration metadata shortcuts
By Java Tip in forum Java TipReplies: 0Last Post: 03-30-2008, 10:06 AM -
How to use XML-based configuration metadata shortcuts
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:38 PM -
How to set null value in Springs configuration file
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:35 PM -
save configuration
By Peter in forum XMLReplies: 2Last Post: 07-04-2007, 07:40 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks