mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-26 05:48:32 +08:00
fix: update log segment config
This commit is contained in:
parent
14e4c530a2
commit
f03f39ca85
@ -13,11 +13,11 @@ logger.add(
|
||||
f"{script_path}/logs/DouyinLiveRecorder.log",
|
||||
level="DEBUG",
|
||||
format="{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}:{line} - {message}",
|
||||
filter=lambda i: i["level"].name == "DEBUG",
|
||||
filter=lambda i: i["level"].name != "INFO",
|
||||
serialize=False,
|
||||
enqueue=True,
|
||||
retention=1,
|
||||
rotation="100 KB",
|
||||
rotation="300 KB",
|
||||
encoding='utf-8'
|
||||
)
|
||||
|
||||
@ -32,14 +32,3 @@ logger.add(
|
||||
rotation="300 KB",
|
||||
encoding='utf-8'
|
||||
)
|
||||
|
||||
logger.add(
|
||||
f"{script_path}/logs/DouyinLiveRecorder.log",
|
||||
level="WARNING",
|
||||
format="{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}:{line} - {message}",
|
||||
serialize=False,
|
||||
enqueue=True,
|
||||
retention=1,
|
||||
rotation="100 KB",
|
||||
encoding='utf-8'
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user