4
votes

I'm still learning some of the Grails configuration details and I'm wondering the appropriate way to configure logging for unit testing. Right now I configure my prod, dev and test environments in Config.groovy and unit test logging in log4j.test.properties. As I understand it the test environment in Config.groovy is for integration testing.

Is this the correct way to do this?

1

1 Answers

4
votes

The test environment is for any and all tests (unit, integration, functional). So just configure your log4j in the Config.groovy within a test environment block.