- 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.
推薦閱讀
- Word/Excel/PPT 2007辦公技巧
- Word排版技術大全(第2版)
- 從原始數據到分析報告:Excel數據透視表高效達人養成記
- PERFORM-3D基本操作與實例
- Word/Excel/PPT 2010辦公應用從入門到精通
- 金蝶ERP-K/3培訓教程:財務/供應鏈/生產制造(第2版)
- Office辦公高手應用技巧
- WPS Office辦公應用從入門到精通
- 左手Excel右手Tableau數據分析可視化實戰案例視頻精講
- Excel 2007表格·數據·圖表完全自學手冊
- Excel函數與公式速查手冊(第2版)
- Excel應用大全(全新升級版)
- Access數據庫程序設計實踐教程
- Word/Excel/PPT 2016辦公三合一傻瓜書
- 商業智能:從Excel到Power BI的數據可視化(動態圖表篇)