You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(configurable-logger): add support for the configurable logger (#58)
This commit introduces the configurable logger feature. With this enhancement, the core library now boasts a flexible logging system tailored specifically for logging HTTP request and response information. By addressing the lack of a standardized logging mechanism, developers can now effectively debug and monitor network interactions with ease. The implementation includes a modular logging framework supporting customizable logging formats, default logger, and verbosity levels, empowering users to tailor logging behavior to their specific requirements. Additionally, seamless integration with existing logging libraries. This enhancement marks a significant step towards improving the usability and reliability of the core library, enhancing the development experience for our community.
|[`ApiLoggingConfiguration`](apimatic_core/logger/configuration/api_logging_configuration.py)| Holds overall logging configuration for logging an API call |
74
+
|[`ApiRequestLoggingConfiguration`](apimatic_core/logger/configuration/api_logging_configuration.py)| Holds logging configuration for API request |
75
+
|[`ApiResponseLoggingConfiguration`](apimatic_core/logger/configuration/api_logging_configuration.py)| Holds logging configuration for API response |
|[`SdkLogger`](apimatic_core/logger/sdk_logger.py)| Responsible for logging the request and response of an API call, it represents the default implementation of ApiLogger when there exist any logging configuration |
82
+
|[`NoneSdkLogger`](apimatic_core/logger/sdk_logger.py)| Represents the default implementation for ApiLogger when no logging configuration is provided |
83
+
|[`ConsoleLogger`](apimatic_core/logger/default_logger.py)| Represents the default implementation for Logger when no custom implementation is provided |
84
+
|[`LoggerFactory`](apimatic_core/logger/sdk_logger.py)| Responsible for providing the ApiLogger implementation (`SdkLogger`\|`NoneSdkLogger`) based on the logging configuration |
0 commit comments