How to Suppress Apache Logs When Integrating Tinylog with Spring Boot

This guide explains why Apache-related logs appear in the console when integrating Tinylog with Spring Boot and shows how to hide them by setting the appropriate logging level for the offending package, such as disabling org.apache.catalina logs.

Programmer DD
Programmer DD
Programmer DD
How to Suppress Apache Logs When Integrating Tinylog with Spring Boot

Hello, I'm DD.

Today we discuss the issue: Spring Boot integration with Tinylog prints red Apache-related logs in the console.

Problem

The console continuously shows red Apache logs when Tinylog is integrated, which the user wants to remove or hide.

Reproduce the issue using the configuration file from the linked tutorial.

writer1       = console
writer1.level = info
writer1.format = {date: HH:mm:ss.SSS} {tag} {level}: {message}
exception = keep: com.snow

writer2       = rolling file
writer2.file  = snowlog/{date: YYYY-MM-DD}-snowlog.txt
writer2.level = info
writer2.format = {date: HH:mm:ss.SSS} {tag} {level}: {message}

To hide the logs, set the logging level for the offending package to off using Spring Boot's logging.level property.

logging.level.org.apache.catalina=off
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavaloggingSpring BootApacheTinylog
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.