How to Configure Simple Logger slf4j Log Levels

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 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

By |2018-12-03T21:39:01+00:00November 4th, 2018|Java Tutorials|0 Comments

About the Author:

Onur Baskirt is a senior IT professional with 10+ years of experience. He worked at Bahçesehir University, ST Microelectronics, Huawei and Ericsson as a research assistant, design verification engineer, and software test leader. Also, he worked as software test leader and software operations manager at Turkey's biggest technology retailer, Teknosa. After Teknosa, he worked as Head of Software Testing and Manager of two Development Teams at Now, he is working as a Senior Technical Consultant at Emirates Airlines in Dubai. His current research areas are technical software testing, programming, and computer science. Formerly, he has several research works and papers on digital chip design & verification. His hobbies are sport, dancing, traveling, and nutrition. You can find detailed information about him on his linked-in page.

Leave A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.