easybuilders / easybuild-framework

EasyBuild is a software installation framework in Python that allows you to install software in a structured and robust way.
https://easybuild.io
GNU General Public License v2.0
148 stars 201 forks source link

Overhauling the EasyBuild logging #1796

Open ocaisa opened 8 years ago

ocaisa commented 8 years ago

If we were considering overhauling the logging of EB anyway, it might be interesting to consider yaml output for EB logging. This approach is used, for example, by BigDFT.

This would potentially allow us to use log files as input to allow reproduction of bugs, and also facilitate post-processing of log files (different views:minimal, detailed, debug,...).

BigDFT have tips for how to still allow the output to be human readable and grep-able and said they'd be happy to share them

verdurin commented 1 year ago

This came up again in the Maintainer Summit, March 2023.

@smoors may be able to share the Vim syntax colouring setup he created, for easier navigation.

branfosj commented 1 year ago

I started on #4001, but it was unclear on to how to correctly add that to the code.

smoors commented 1 year ago

here is my vim syntax file for inspiration can certainly be improved upon https://gist.github.com/smoors/0b4012a1109acbc6edb8e41852eff648

terjekv commented 1 year ago

Is there a reason to use YAML over JSON for logging? https://www.structlog.org/en/stable/ is very nice to work with, and integrates very smoothly into python.