Logger
This module contains functionality related to the the logger
module for common
.
Logger
LoggerConfiguration
Utility class for configuring application-wide logging.
Provides static methods to set up logging formats, handlers, and warning filters. Configures both root logger and specific module loggers (e.g., httpx).
Source code in src/common/logger.py
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 47 48 49 50 51 52 53 54 55 56 57 |
|
config()
staticmethod
Configure application logging settings.
Sets up logging with the following configuration: - Formats logs with timestamp, logger name, level, and message - Directs output to stdout - Sets root logger level to INFO - Configures httpx logger with WARN level
Source code in src/common/logger.py
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 |
|
filterwarnings()
staticmethod
Configure warning filters for the application.
Suppresses specific warnings: - DeprecationWarnings from langchain module
Source code in src/common/logger.py
47 48 49 50 51 52 53 54 55 56 57 |
|