码迷,mamicode.com
首页 > 编程语言 > 详细

springboot 使用日志

时间:2018-01-07 16:05:31      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:参考   console   默认   spring   方法   href   ons   logging   http   

spring boot 默认使用日志打印到console

添加application.properties文件在src/main/resoures文件夹下

logging.file=my.log

将日志写在文件中

 

 

详细使用方法:

参考  

application properties 官方配置文件示例

springboot 使用日志

标签:参考   console   默认   spring   方法   href   ons   logging   http   

原文地址:https://www.cnblogs.com/pangkang/p/8227859.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!