<#9404 feat: Add 'disabled' log level to suppress ...
# meltano-repo-activity
g
#9404 feat: Add 'disabled' log level to suppress all logging output Pull request opened by tayloramurphy ## Summary This PR adds a new
disabled
log level option to Meltano that completely suppresses all logging output. This enhancement provides users with a clean way to run Meltano commands without any log messages. Closes #6723 ## Changes • Added
disabled
to the
LEVELS
dictionary with a value of
CRITICAL + 1
to ensure it suppresses all log messages • Updated the CLI
--log-level
option with help text explaining the new level • Added the
disabled
option to the settings configuration in
settings.yml
• Modified
default_config()
to properly handle the numeric level conversion for the
disabled
level • Added comprehensive test coverage for the new log level ## Use Cases This feature is particularly useful for: • Automated scripts that need to parse Meltano output without log interference • CI/CD pipelines where log output needs to be minimized • Users who prefer completely silent operation for specific commands ## Testing Added tests to verify: • The
disabled
level is properly defined in the
LEVELS
dictionary • The level value is higher than
CRITICAL
to ensure complete suppression • The
parse_log_level()
function correctly parses the new level • The logging configuration properly applies the disabled level ## Example Usage meltano --log-level disabled run tap-gitlab target-postgres ## Summary by Sourcery Introduce a new “disabled” log level that completely suppresses all logging output by assigning it a numeric value above CRITICAL and integrating it into the logging configuration, CLI, settings, documentation, and tests. New Features: • Add “disabled” log level to suppress all logging output Enhancements: • Integrate numeric handling for the disabled level in default_config and update CLI option help text and Settings UI configuration Documentation: • Document the disabled log level in CLI help text and settings reference documentation Tests: • Add tests to verify LEVELS entry, parse_log_level behavior, and default_config application for the disabled level meltano/meltano