Log level in tests for Idea plugin

Hello Community,

I'm the creator of aemtools IntelliJ IDEA plugin, the issue I have:
During test execution the platform writes logs in DEBUG level, that creates too much output for my CI (it fails due to that)

How I can setup logging level for IDEA during test execution?

My project: https://github.com/aemtools/aemtools
Failed CI: https://travis-ci.org/aemtools/aemtools/jobs/460350052

Thanks

3 comments
Comment actions Permalink

Most likely this happens because of failed tests. If everything is going fine - there is no DEBUG logging. Is everything fine locally?

0
Comment actions Permalink

Hello Alexandr,

Locally, all tests are green, but the log level is DEBUG as well

0
Comment actions Permalink

The debug level in our test framework is set to DEBUG to help diagnose the failing tests. The corresponding logger (com.intellij.testFramework.TestLogger) however, doesn't print all the debug messages to the console. It stores them in the internal buffer and prints its contents only when the test fails.

If you absolutely must avoid the DEBUG level in your tests, for example, when your code contains questionable `if logger.isDebugEnbled() calculatePiUpTo2BnDigit();` then you can change the logger to something else via

```

static {
Logger.setFactory(MyOwnLoggerFactory.class);
}

```

0

Please sign in to leave a comment.