Skip to main content

Module log

Module log 

Source
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.