- 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高效辦公:VBA范例應用(修訂版)
- 中文PowerPoint 2003應用基礎
- Word、Excel 行政與文秘高效辦公必備
- 游戲美術設計
- 精英演示:PPT的商務演示藝術
- Mastering Office 365 Administration
- 文檔之美:打造優秀的Word文檔
- 電腦高效辦公
- Excel統計分析:方法與實踐
- 用數據講故事
- WPS Office 2019高級應用案例教程
- Excel/PPT 2016辦公應用從入門到精通
- Raspberry Pi Computer Vision Programming
- Power Query:基于Excel 和 Power BI的M函數詳解及應用
- Matlab優化設計及其應用