Hi all, if you use slf4j-simple in your projects, you may be faced with default log reporting and if you don’t want to see especially INFO level logs in your console, you need to modify logging levels. There are some ways to do this operation but in this article, I want to explain how to configure Simple Logger SLF4J’s log levels.

In order to do this, you need to create a new properties file in your test resources folder and name it as simplelogger.properties. After that, you should add below properties configurations in this file.

After adding this file, you can uncomment the properties which you want to modify as shown and commented in below file. For example, if I use “org.slf4j.simpleLogger.defaultLogLevel=warn” then I will not see debug and info logs on the console.

I hope this tip will help you. If you know better ways, please write a comment below of this article.

Onur Baskirt