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.
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=offSigned-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
