我的一个SpringCloud工程下一个SpringBoot程序,logback配置文件如下,在IDEA中,dev环境下启动的日志会打印在IDEA下的窗口中,但是配置了logback,要在测试机上prod环境运行,发现打印日志中部分启动日志没有打印,怎么回事?
`
${stdoutPattern}
level="ERROR">
${logPath}/
${logPath}/user-%d{yyyy-MM-dd}-%
10
500MB
${pattern}
level="ERROR">
`
没有在日志文件打印的日志主要是 , ,之类的,
譬如
Connected to the target VM, address: '127.0.0.1:59938', transport: 'socket'
23:32:23,686 |-INFO in - Will scan for changes in [file:/Users/nan/mygit/pica/user/target/classes/]
23:32:23,695 |-INFO in - Setting ReconfigureOnChangeTask scanning period to 10 seconds
23:32:23,706 |-INFO in - About to instantiate appender of type []
23:32:23,707 |-INFO in - Naming appender as [stdout]
日志文件打印的启动日志是从下面开始的
2020-03-24 15:29:08.044 INFO [ main] - The following profiles are active: prod
2020-03-24 15:29:09.560 DEBUG [ main] - Logging initialized using 'class .slf4j.Slf4jImpl' adapter.