gnodet commented on PR #13180:
URL: https://github.com/apache/maven/pull/13180#issuecomment-5729650647

   One format worth considering for the machine-readable console mode: 
**logfmt**.
   
   ```
   level=INFO  build=a1b2c3 module=my-app 
execution=maven-compiler-plugin:compile:default phase=compile ts=1234567890123 
msg="Compiling 42 source files"
   level=ERROR build=a1b2c3 module=my-app 
execution=maven-compiler-plugin:compile:default phase=compile ts=1234567890456 
msg="Compilation failure"
   level=INFO  build=a1b2c3 module=my-app 
execution=maven-compiler-plugin:compile:default result=FAILURE duration_ms=1823 
msg="Mojo finished"
   ```
   
   It sits nicely between plain text (human-readable) and JSON lines (fully 
structured): parseable by Loki, Vector, Grafana out of the box, but still 
legible with a plain `cat`.
   
   The interesting property: with `build` + `module` + `execution` as grouping 
keys, the full hierarchy (modules → executions → log events + timing + results) 
can be **reconstructed from the flat stream** by any consumer.
   
   Could be offered as a `--console=logfmt` option, or considered as the 
canonical machine format if we want to converge on a single representation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to