Hi Jean-Claude!

You should use logback-test.xml for tests.
Paul has documented it very well in [1] and [2].

[1]
https://github.com/apache/drill/blob/master/docs/dev/TestLogging.md#default-test-log-levels
[2]
https://github.com/apache/drill/blob/master/docs/dev/ClusterFixture.md#controlling-logging

On Fri, Oct 12, 2018 at 3:52 PM Jean-Claude Cote <[email protected]> wrote:

> I'm trying to output trace information in my junit test cases. I'm using
> the ClusterFixture
>
> startCluster(ClusterFixture.builder(dirTestWatcher).maxParallelization(1));
>
> I've put my logback.xml in src/test/resources
>
> and feed in these environment variables at the command mvn launch.
>
> mvn --offline clean install -Dlog.path=/tmp/sqlline.log
> -Dlog.query.path=/tmp/sqlline_queries.json
>
> But no output files are created. How can I accomplish this?
>
> Thank you
> jc
>

Reply via email to