This commit is contained in:
2021-11-14 15:52:46 +08:00
parent 915c231124
commit 1e344dc204
112 changed files with 1039 additions and 1039 deletions

View File

@@ -6,7 +6,7 @@ tags: ["python", "logging"]
categories: ["python"]
---
# 单输出日志到屏幕
## 单输出日志到屏幕
- 示例
```python
import logging
@@ -26,7 +26,7 @@ categories: ["python"]
- 默认的日志级别设置为WARNING日志级别等级CRITICAL > ERROR > WARNING > INFO > DEBUG > NOTSET
- 默认的日志格式为日志级别:Logger名称:用户输出消息。
# 配置日志
## 配置日志
- 示例
```python
import logging