mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-21 06:48:56 +00:00
FIx logs path
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user