Skip to content

Conversation

@jelovirt
Copy link
Member

@jelovirt jelovirt commented May 1, 2025

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 added 2 commits May 1, 2025 19:29
Signed-off-by: Jarno Elovirta <[email protected]>
Signed-off-by: Jarno Elovirta <[email protected]>
@jelovirt jelovirt added the enhancement Changes to an existing topic or feature label May 1, 2025
@jelovirt jelovirt added this to Next May 1, 2025
@jelovirt jelovirt moved this to Todo in Next May 1, 2025
Copy link
Member

@infotexture infotexture left a comment

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.

jelovirt and others added 5 commits September 2, 2025 18:05
Co-authored-by: Roger Sheen <[email protected]>
Signed-off-by: Jarno Elovirta <[email protected]>
Co-authored-by: Roger Sheen <[email protected]>
Signed-off-by: Jarno Elovirta <[email protected]>
Co-authored-by: Roger Sheen <[email protected]>
Signed-off-by: Jarno Elovirta <[email protected]>
Co-authored-by: Roger Sheen <[email protected]>
Signed-off-by: Jarno Elovirta <[email protected]>
Co-authored-by: Roger Sheen <[email protected]>
Signed-off-by: Jarno Elovirta <[email protected]>
@jelovirt jelovirt moved this from Todo to In Progress in Next Sep 2, 2025
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

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants