Jacob
Jacob

Reputation: 14741

log4j.xml in Eclipse

Which is the best place to keep log4j.xml in eclipse folders? I keep it under \build\classes however every time when I clean project, log4j.xml gets removed.

So what is the standard and best place to keep log4j.xml?

Upvotes: 1

Views: 5597

Answers (2)

khotyn
khotyn

Reputation: 954

\build\classes is the target folder of the project, you should put log4j.xml in the source folder of your project.

Upvotes: 2

skaffman
skaffman

Reputation: 403581

In a Maven-standard build config, you put it in src/main/resources, but anywhere in the root of the classpath is fine, e.g. src/main/java, src/java, whatever. Just don't put it in a directory containing generated artifacts (like build/classes), since it'll be deleted every time you blink.

Upvotes: 2

Related Questions