您当前的位置: 首页 >  spring

spring-boot日志配置 logging.path logging.file 注意事项

发布时间:2019-01-11 17:47:53 ,浏览量:0

springboot日志配置 logging.path  logging.file 注意事项

可能有些小伙伴会同时配置 logging.path 和 logging.file,但是又发现其中一个不生效。

官方文档中有这么一句:

If you want to write log files in addition to the console output you
need to set a logging.file or logging.path property

也就是说,它们不会同时生效,只配置其中一个就好了。

例如我配置的时候只指定path

logging.path = ./logs

那么记录日志的时候默认的文件名是:spring.log

关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    105695博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0638s