Spring boot embedded tomcat logs

后端 未结 7 1703
南笙
南笙 2020-12-09 10:19

i\'m using spring boot embedded tomcat with spring boot 1.5.9 , im also using Log4j2.

recently i exerience problems during load, so i want to understand better the

7条回答
  •  借酒劲吻你
    2020-12-09 10:34

    Default configurations are provided for Java Util Logging, Log4J, Log4J2 and Logback. In each case loggers are pre-configured to use console output with optional file output also available

    refer this link : https://stackoverflow.com/questions/31939849/spring-boot-default-log-location/31939886

    The embedded tomcat in spring boot internally echoes logs to console. The default log configuration will echo messages to the console as they are written. So until you explicitly specify a file as you described, it stays in the Console.

    From the spring boot logging doc.

    You can custmize the logging as per your need.

提交回复
热议问题