<springProfile name="prod"> </springProfile>
将正式环境的日志文件包裹在该标签下
image.png
image.png
不要将 CONSOLE相关配置包裹进来,否则也不会在编辑器CONSOLE输出日志信息
image.png
文件格式要跟上面一样
设置日志输出位置
image.png
image.png
配置profile
image.png
springboot 2.x 最好以这种方式配置当前文件的环境前缀