springboot启动不打印日志信息_SpringBoot启动信息没有打印到日志文件中,怎么回事?...

我的一个SpringCloud工程下一个SpringBoot程序,logback配置文件如下,在IDEA中,dev环境下启动的日志会打印在IDEA下的窗口中,但是配置了logback,要在测试机上prod环境运行,发现打印日志中部分启动日志没有打印,怎么回事?

`

${stdoutPattern}

level="ERROR">

${logPath}/user.log

${logPath}/user-%d{yyyy-MM-dd}-%i.log

10

500MB

${pattern}

level="ERROR">

`

没有在日志文件打印的日志主要是 ch.qos.logback.classic.joran.action.ConfigurationAction, ch.qos.logback.core.joran.action.AppenderAction,ch.qos.logback.classic.jul.LevelChangePropagator之类的,

譬如

Connected to the target VM, address: '127.0.0.1:59938', transport: 'socket'

23:32:23,686 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Will scan for changes in [file:/Users/nan/mygit/pica/user/target/classes/logback-spring.xml]

23:32:23,695 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeTask scanning period to 10 seconds

23:32:23,706 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]

23:32:23,707 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [stdout]

日志文件打印的启动日志是从下面开始的

2020-03-24 15:29:08.044 INFO [ main] o.s.boot.SpringApplication - The following profiles are active: prod

2020-03-24 15:29:09.560 DEBUG [ main] o.a.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.

你可能感兴趣的:(springboot启动不打印日志信息_SpringBoot启动信息没有打印到日志文件中,怎么回事?...)