diff --git a/parameters/dita-command-arguments.dita b/parameters/dita-command-arguments.dita index 691b276b5..b0f0956b3 100644 --- a/parameters/dita-command-arguments.dita +++ b/parameters/dita-command-arguments.dita @@ -375,6 +375,18 @@ --verbose option (or -v). + + + --logger=json + + +

Generate a structured log in JSON format. Each log message generates a JSON object on its own line. JSON + logging disables colored output.

+

If log is written to a file with --logfile, the log will be generated as a JSON array + where each log message is a JSON object as an array item.

+
+
--no-color diff --git a/topics/logging.dita b/topics/logging.dita index f7d296db8..538256afe 100644 --- a/topics/logging.dita +++ b/topics/logging.dita @@ -56,6 +56,11 @@ --logfile=file and specify the path to the log file.

Unless an absolute path is specified, the value will be interpreted relative to the current directory.

+
  • Use dita + --logger=json to generate a structured log in JSON format. Each log + message generates a JSON object on its own line. +

    If log is written to a file with --logfile, the log will be generated as a JSON + array where each log message is a JSON object as an array item.