📝 docs: guide, installation

This commit is contained in:
yanyongyu
2020-09-12 13:45:03 +08:00
parent 4a890298db
commit 60bb6c45d2
7 changed files with 158 additions and 10 deletions

View File

@ -143,7 +143,7 @@ API_ROOT={"123456": "http://127.0.0.1:5700"}
* 类型: `Optional[float]`
* 默认值: `60.`
* 默认值: `30.`
* 说明:
@ -242,3 +242,16 @@ SESSION_EXPIRE_TIMEOUT=120 # 单位: 秒
SESSION_EXPIRE_TIMEOUT=[DD ][HH:MM]SS[.ffffff]
SESSION_EXPIRE_TIMEOUT=P[DD]DT[HH]H[MM]M[SS]S # ISO 8601
```
### `apscheduler_config`
* 类型: `dict`
* 默认值: `{"apscheduler.timezone": "Asia/Shanghai"}`
* 说明:
APScheduler 的配置对象,见 [Configuring the Scheduler](https://apscheduler.readthedocs.io/en/latest/userguide.html#configuring-the-scheduler)

View File

@ -39,8 +39,17 @@ NoneBot 使用 [loguru](https://github.com/Delgan/loguru) 来记录日志信息
```python
from nonebot.log import logger
# 也可以这样
import logging
logger = logging.getLogger("nonebot")
```
## _class_ `LoguruHandler`
基类:`logging.Handler`
### `emit(record)`
Do whatever it takes to actually log the specified logging record.
This version is intended to be implemented by subclasses and so
raises a NotImplementedError.