Often the most important part of the news is what they didn't tell.
Originally posted by Tim Holloway:
Log4j properties aren't (normally) used in developing apps (unless you're debugging Eclipse itself!). So what you really want to to build the executable Java app (Application, WAR, EAR or whatever) and include the Log4j properties in the runtime classpath.
For WARs, this would be the WEB-INF/classes directory of the WAR you create. For an executable JAR (standalone app), I think it's the root of the JAR.
Originally posted by Luis Colorado:
I found that the best place to put your properties file is under the src directory. If you put it there, it will automatically be put in your output directory.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Luis Colorado:
I have a question and a correction. The question is: why Log4j properties are not used in developing apps?
[ May 21, 2008: Message edited by: Luis Colorado ]
Often the most important part of the news is what they didn't tell.
And if your project is a regular Java application and not a web application, then simply putting the properties file into the project at the root level causes it to be in the project's classpath.
Anver Sadhat
Ilja Preuss wrote:
Another option is putting it into a class folder (to be configured in the library tab of the build path). In that case, it won't be copied to the output folder.
Putting the file into a jar would work, too, of course, but sounds like overkill to me.
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|