add log formatting

This commit is contained in:
Adil Hafeez 2025-10-08 10:41:46 -07:00
parent efa73e1f3d
commit 39a97d4a89
3 changed files with 12 additions and 3 deletions

View file

@ -13,7 +13,10 @@ from .api import ChatMessage, ChatCompletionRequest, ChatCompletionResponse
# Set up logging
logging.basicConfig(level=logging.INFO)
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - [CONTEXT_BUILDER] - %(levelname)s - %(message)s",
)
logger = logging.getLogger(__name__)

View file

@ -11,7 +11,10 @@ from .api import ChatMessage, ChatCompletionRequest, ChatCompletionResponse
# Set up logging
logging.basicConfig(level=logging.INFO)
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - [QUERY_REWRITER] - %(levelname)s - %(message)s",
)
logger = logging.getLogger(__name__)

View file

@ -16,7 +16,10 @@ from .api import (
)
# Set up logging
logging.basicConfig(level=logging.INFO)
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - [RESPONSE_GENERATOR] - %(levelname)s - %(message)s",
)
logger = logging.getLogger(__name__)
# Configuration for archgw LLM gateway