Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions parameters/dita-command-arguments.dita
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,18 @@
<xref href="#./verbose"><parmname>--verbose</parmname></xref> option (or <parmname>-v</parmname>).</note>
</pd>
</plentry>
<plentry id="logger">
<pt>
<parmname>--logger</parmname>=<varname>json</varname>
</pt>
<pd>
<p>Generate a structured log in JSON format. Each log message generates a JSON object on its own line. JSON
logging disables colored output.</p>
<p>If log is written to a file with <parmname
>--logfile</parmname>, the log will be generated as a JSON array
where each log message is a JSON object as an array item.</p>
</pd>
</plentry>
<plentry>
<pt>
<parmname>--no-color</parmname>
Expand Down
5 changes: 5 additions & 0 deletions topics/logging.dita
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
<parmname>--logfile</parmname>=<varname>file</varname> and specify the path to the log file.</p>
<p>Unless an absolute path is specified, the value will be interpreted relative to the current
directory.</p></li>
<li>Use <cmdname>dita</cmdname>
<parmname>--logger</parmname>=<varname>json</varname> to generate a structured log in JSON format. Each log
message generates a JSON object on its own line.
<p>If log is written to a file with <parmname>--logfile</parmname>, the log will be generated as a JSON
array where each log message is a JSON object as an array item.</p></li>
</ul></dd>
</dlentry>
<dlentry>
Expand Down
Loading