-
Notifications
You must be signed in to change notification settings - Fork 97
JSON log format #611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
JSON log format #611
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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 strucured log in JSON format. Each log message generated a JSON object on its own line. JSON | ||||||
log disabled colored output.</p> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
<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 JSON object as an array item.</p> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
</pd> | ||||||
</plentry> | ||||||
<plentry> | ||||||
<pt> | ||||||
<parmname>--no-color</parmname> | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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 strucured log in JSON format. Each log | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
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 JSON object as an array item.</p></li> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
</ul></dd> | ||||||
</dlentry> | ||||||
<dlentry> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.