Expand description
Logging utilities for mz-deploy.
This module provides a simple verbose logging system that can be enabled
via the --verbose CLI flag. When verbose mode is enabled, diagnostic
messages are printed to stdout to help users understand what the tool
is doing.
Traits§
- Render
- A value that can be rendered as both human-readable text and JSON.
Functions§
- color_
enabled - Check if color is enabled on stderr.
- json_
output_ enabled - Check if JSON output mode is currently enabled.
- output
- Output a value: JSON to stdout when
--output json, human text to stderr otherwise. - output_
json - Write a JSON-only value to stdout.
- print_
deploy_ id - Print a successful deployment’s ID to stdout.
- quiet_
enabled - Check if quiet mode is currently enabled.
- set_
json_ output - Enable or disable JSON output mode.
- set_
quiet - Enable or disable quiet mode.
- set_
verbose - Enable or disable verbose logging.
- verbose_
enabled - Check if verbose logging is currently enabled.