1
0
forked from bot/app

⬇️ 更新文档样式

This commit is contained in:
2024-08-29 14:19:39 +08:00
parent 3a3ef4d6ae
commit f12b6854b7
70 changed files with 3676 additions and 3257 deletions

View File

@ -1,16 +1,11 @@
---
title: liteyuki.log
order: 1
icon: laptop-code
category: API
---
### ***def*** `get_format(level: str) -> str`
### *func* `get_format() -> str`
<details>
<summary>源代码</summary>
<summary> <b>Source code</b> </summary>
```python
def get_format(level: str) -> str:
@ -21,14 +16,15 @@ def get_format(level: str) -> str:
```
</details>
### ***def*** `init_log(config: dict) -> None`
### *func* `init_log()`
在语言加载完成后执行
Returns:
**Description**: 在语言加载完成后执行
<details>
<summary>源代码</summary>
<summary> <b>Source code</b> </summary>
```python
def init_log(config: dict):
@ -48,11 +44,11 @@ def init_log(config: dict):
```
</details>
### ***var*** `logger = loguru.logger`
### ***var*** `debug_format = '<c>{time:YYYY-MM-DD HH:mm:ss}</c> <lvl>[{level.icon}]</lvl> <c><{name}.{module}.{function}:{line}></c> {message}'`
- **Type**: `str`
### ***var*** `default_format = '<c>{time:MM-DD HH:mm:ss}</c> <lvl>[{level.icon}]</lvl> <c><{name}></c> {message}'`
### ***var*** `show_icon = config.get('log_icon', True)`
- **Type**: `str`