-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.toml
46 lines (39 loc) · 1.1 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
default_pack_url = "https://gist.githubusercontent.com/ctrlraul/3b5669e4246bc2d7dc669d484db89062/raw"
missing_image_url = "https://upload.wikimedia.org/wikipedia/commons/b/b1/Missing-image-232x150.png"
max_image_size = "25MiB"
chunk_size = "1MiB"
[logging]
version = 1
disable_existing_loggers = false
[logging.root]
level = "INFO"
handlers = ["stdout", "file"]
[logging.formatters.simple]
format = "{asctime} [{levelname:<8}|{pathname}:{lineno}] {name} - {message}"
style = "{"
datefmt = "%d-%H:%M:%S"
[logging.formatters.json]
"()" = "app.core.logging.JsonFormatter"
[logging.formatters.json.fmt_keys]
timestamp = "timestamp"
level = "levelname"
message = "message"
logger = "name"
module = "module"
function = "funcName"
line = "lineno"
[logging.handlers.stdout]
class = "logging.StreamHandler"
level = "INFO"
formatter = "simple"
stream = "ext://sys.stdout"
[logging.handlers.file]
class = "logging.handlers.RotatingFileHandler"
level = "DEBUG"
formatter = "json"
filename = "logs/log.jsonl"
maxBytes = 1_048_576
backupCount = 5
[logging.loggers]
disnake = { level = "ERROR" }
"disnake.client" = { level = "CRITICAL" }