How to customize tomcat logging in spring boot?

0

I have a small problem with my application, my tomcat log is generating a large amount of data, and this is leaving the company application half slow, I wonder if there is any way to decrease the amount of log , in other words, if there is how to customize this log to produce only the data that we think pertinent, or else some option to summarize the log, just showing what is really relevant, I hope I have been clear Thanks in advance.

    
asked by anonymous 02.01.2017 / 11:49

2 answers

1

You can change the amount of logging in the application.properties file.

Normally when I'm developing I leave DEBUG and when it's in production I leave ERROR .

logging.level.=ERROR

Spring Boot Log Docs

    
06.01.2017 / 08:10
0

You can use Log4J, it's a very simple library that can manage the creation of log files, you can create files for specific log types. There are several tutorials on the web, in very little time you can get around your problem. Site and tutorial that can help you

    
22.11.2017 / 12:37