- Mastering Spring Boot 2.0
- Dinesh Rajput
- 105字
- 2021-06-25 21:29:16
Logging output
Spring Boot logs, by default, to the console, but you can also log to rotating files. You can specify a file or path in application.properties. Let's see the following configuration:
# Use only one of the following properties # absolute or relative file to the current directory logging.file=accounts.log # will write to a spring.log file logging.path=/var/log/accounts
Spring Boot can also configure logging by using the appropriate configuration file of the underlying logging framework.
As you have seen how we can customize the logging activity in a Spring Boot application, let's move to the next section and see an alternative to the properties file.
推薦閱讀
- 從原始數據到分析報告:Excel數據透視表高效達人養成記
- Excel 2010在會計與財務管理日常工作中的應用
- Office 2016辦公應用從入門到精通
- Excel數據透視表應用之道(雙色板)
- Word/Excel/PowerPoint三合一應用大全
- Word/Excel/PPT 2016辦公應用從入門到精通
- 金融精英Word實操手冊:世界知名公司這樣制作研究報告
- 圖表之美:打造優秀的Excel圖表
- 精英演示:PPT的商務演示藝術
- DPDK應用基礎
- 辦公自動化綜合案例應用教程
- PowerPoint 2010從新手到高手
- 學Office 2007辦公應用
- 新編Word/Excel/PPT 2003從入門到精通
- Raspberry Pi Computer Vision Programming