On 17 February 2012 18:36, David Hoffer <[email protected]> wrote:
> Where is logback-test.xml in your directory structure relative to the pom?

Currently for legacy reasons in src/main/webapp/WEB-INF/classes -
though I'm sure that we have tested it in src/main/resources.

On 17 February 2012 18:44, Sebastian Otaegui <[email protected]> wrote:
> is that a test logback configuration? if that is the case you may want to
> put it in src/test/resources instead.

It's more a development logback configuration. We have both
logback.xml and logback-test.xml under src/main. When running inside
Eclipse, the logback-test takes preference and logs to stdout (i.e.
the Eclipse console) so you can see what's going on as it happens.

When the project is packaged up, that file is excluded and logback.xml
logs to a file.

We also have a src/test/resources/logback.xml that is used when
running JUnit tests.

Greg

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to