Skip to content

Add logging setup and unit tests for logging handlers#46

Merged
javidahmed64592 merged 4 commits into
mainfrom
add-logging
Apr 12, 2026
Merged

Add logging setup and unit tests for logging handlers#46
javidahmed64592 merged 4 commits into
mainfrom
add-logging

Conversation

@javidahmed64592
Copy link
Copy Markdown
Owner

This pull request introduces a new logging setup for the codebase, including configuration constants, handler setup functions, and corresponding unit tests. The main changes are the addition of a reusable logging configuration module and tests to ensure correct handler integration.

Logging setup and configuration:

  • Added logging configuration constants (LOGGING_FORMAT, LOGGING_DATE_FORMAT, LOGGING_LEVEL) to constants.py for consistent logging across the codebase.
  • Introduced a new logging_setup.py module with functions to add console and rotating file handlers, and to configure default logging settings.

Testing:

  • Added unit tests in test_logging_setup.py to verify that the logging handlers are correctly added to the root logger.

@javidahmed64592 javidahmed64592 merged commit 57e64fd into main Apr 12, 2026
11 checks passed
@javidahmed64592 javidahmed64592 deleted the add-logging branch April 12, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant