Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡✨ feat(validators): Add validators for log file format types and ext…
…ra log files configuration - **Added �alidate_log_file_format_types:** This validator ensures that the LOG_FILE_FORMAT_TYPES setting is a dictionary where keys represent valid log levels and values are valid format types (e.g., JSON, XML). - Logs errors if the format type or level is invalid. - Provides detailed hints for correcting misconfigurations. - **Added �alidate_extra_log_files:** This validator checks the EXTRA_LOG_FILES setting to confirm it is a dictionary where keys are valid log levels and values are booleans. - Ensures log levels are valid and that the value for each level is either True or False. - **Error Handling:** Each error is clearly identified with a specific error ID (e.g., django_logging.E022_config_name), making it easier to diagnose and fix configuration issues. - **Improved Reliability:** By adding these validators, misconfigurations related to logging formats and extra log files are detected early, ensuring smoother setup and preventing runtime errors.
- Loading branch information