Skip to content

JSON log format - #611

Merged
infotexture merged 8 commits into
release/4.4from
feature/json-log
Jan 22, 2026
Merged

infotexture merged 8 commits into
release/4.4from
feature/json-log

Conversation

@jelovirt

@jelovirt jelovirt commented May 1, 2025 •

Copy link
Copy Markdown
Member

Description

Document strucutured log (JSON).

Fields in every log message

  • level — log level FATAL, ERROR, WARN, INFO, DEBUG, or TRACE
  • timestamp — message timestamp in ISO datatime format

Optional fields that are in some messages depending on message type

  • code — message ID
  • duration — duration of build/target/task in milliseconds
  • line — line number in the source document
  • location — source document that caused the log message
  • msg — message text
  • row — row number in the source document
  • stacktrace — error Java stack trace
  • target — Ant target name
  • task — Ant task name

Motivation and Context

Documents dita-ot/dita-ot#4581

How Has This Been Tested?

Type of Changes

  • New feature (non-breaking change which adds functionality)

@jelovirt jelovirt added the enhancement Changes to an existing topic or feature label May 1, 2025
@jelovirt jelovirt added this to 4.4 May 1, 2025
@jelovirt jelovirt moved this to Todo in 4.4 May 1, 2025

@infotexture infotexture left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good start, with a few minor suggestions.

Not sure we need the list of fields in the command overview, but probably makes sense to add those to the logging topic and Xref there from the args topic.

Comment thread parameters/dita-command-arguments.dita Resolved
Comment thread topics/logging.dita Resolved
Comment thread topics/logging.dita Resolved
Comment thread parameters/dita-command-arguments.dita Resolved
Comment thread parameters/dita-command-arguments.dita Resolved
@jelovirt jelovirt moved this from Todo to In Progress in 4.4 Sep 2, 2025
jelovirt and others added 8 commits January 22, 2026 16:52
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
Co-authored-by: Roger Sheen <roger@infotexture.net>
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
Co-authored-by: Roger Sheen <roger@infotexture.net>
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
Co-authored-by: Roger Sheen <roger@infotexture.net>
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
Co-authored-by: Roger Sheen <roger@infotexture.net>
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
Co-authored-by: Roger Sheen <roger@infotexture.net>
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
Signed-off-by: Roger Sheen <roger@infotexture.net>
@infotexture
infotexture changed the base branch from develop to release/4.4 January 22, 2026 15:57
@infotexture

Copy link
Copy Markdown
Member

@jelovirt Rebased this on the 4.4 release branch and re-ran Prettier with the latest settings to fix the CI check.

Looks good to me, but let me know if there's anything you'd like to add/change here before we merge it.

@infotexture
infotexture marked this pull request as ready for review January 22, 2026 16:10
@infotexture
infotexture merged commit c82616e into release/4.4 Jan 22, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in 4.4 Jan 22, 2026
@infotexture
infotexture deleted the feature/json-log branch January 22, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Changes to an existing topic or feature

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants