Reputation: 17375
I am following the Spring batch with Spring boot tutorial here:
https://spring.io/guides/gs/batch-processing/
I have the following in POM
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-batch</artifactId>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
</dependency>
And the parent as:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.3.RELEASE</version>
</parent>
I am getting DEBUG
logs in my console automatically.
How do I suppress it? No matter what I put in my application.properties
, its not going away.
Its really frustrating.
Lines I tried in application.properties
:
logging.level.org.springframework.batch: ERROR
logging.level.org.hibernate: ERROR
and
logging.level.org.springframework.web: ERROR
logging.level.org.hibernate: ERROR
Tried by replacing : with = -- got same result
This also doesn't work.
logging.level.=ERROR
Upvotes: 0
Views: 1587
Reputation: 17375
Creating a logback.xml with the following lines resolved the issue:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<logger name="org.springframework.batch" level="ERROR"/>
<logger name="org.springframework.jdbc" level="ERROR"/>
</configuration>
Upvotes: 3