FIx logs path
This commit is contained in:
parent
d31d17e5a2
commit
bc1bef3324
1 changed files with 6 additions and 6 deletions
|
|
@ -9,12 +9,12 @@ from loguru import logger
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
from rich.markup import escape
|
from rich.markup import escape
|
||||||
from rich.progress import (
|
from rich.progress import (
|
||||||
Progress,
|
|
||||||
TextColumn,
|
|
||||||
BarColumn,
|
BarColumn,
|
||||||
TimeRemainingColumn,
|
|
||||||
TaskProgressColumn,
|
|
||||||
MofNCompleteColumn,
|
MofNCompleteColumn,
|
||||||
|
Progress,
|
||||||
|
TaskProgressColumn,
|
||||||
|
TextColumn,
|
||||||
|
TimeRemainingColumn,
|
||||||
)
|
)
|
||||||
|
|
||||||
from common.utils import unwrap
|
from common.utils import unwrap
|
||||||
|
|
@ -116,8 +116,8 @@ def setup_logger():
|
||||||
colorize=True,
|
colorize=True,
|
||||||
)
|
)
|
||||||
# Add file logging
|
# Add file logging
|
||||||
_ = logger.add(
|
logger.add(
|
||||||
"/var/log/tabbyapi/{time}.log",
|
"logs/{time}.log",
|
||||||
level=LOG_LEVEL,
|
level=LOG_LEVEL,
|
||||||
format="{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {message}",
|
format="{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {message}",
|
||||||
rotation="20 MB", # Rotate file when it reaches 20MB
|
rotation="20 MB", # Rotate file when it reaches 20MB
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue