forked from whoareyou0401/PythonCourse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto commit by GitBook Editor
- Loading branch information
RockRong
committed
Apr 3, 2018
1 parent
33894c4
commit 09c0963
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,28 @@ | ||
# Logging | ||
|
||
[https://docs.djangoproject.com/zh-hans/2.0/topics/logging/](https://docs.djangoproject.com/zh-hans/2.0/topics/logging/) | ||
|
||
Django使用了Python中内建的logging模型实现了Django系统的日志系统。 | ||
|
||
|
||
|
||
### 核心成员 | ||
|
||
* Loggers | ||
* 日志系统的入口 | ||
* 日志有级别,级别标识日志信息将被怎么处理 | ||
* DEBUG | ||
* INFO | ||
* WARNING | ||
* ERROR | ||
* CRITICAL | ||
* Handlers | ||
* logger消息的处理者 | ||
* 决定每条消息如何处理 | ||
* Filters | ||
* 对于从logger传递handler的日志记录进行额外的过滤控制 | ||
* Formatters | ||
* 对日志的格式进行格式化 | ||
|
||
|
||
|