Reputation: 57202
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?
Upvotes: 4
Views: 953
Reputation: 35904
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.
Upvotes: 4