Skip to content

Commit

Permalink
Updates web/django/djangologging.md
Browse files Browse the repository at this point in the history
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.
22 changes: 22 additions & 0 deletions web/django/djangologging.md
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
* 对日志的格式进行格式化



0 comments on commit 09c0963

Please sign in to comment.