Skip to content

Add support for python structured logging

Joshua Watt bitbake-devel yocto-docs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15bitbake: lib/bb/msg.py: Convert default domains to a dictionarybitbake/lib/bb/__init__.py bitbake/lib/bb/msg.py+10 -120 replies
2/15bitbake: knotty: Handle logging messages with specific loggerbitbake/lib/bb/ui/knotty.py+1 -10 replies
3/15bitbake: lib/bb/msg.py: Use log level instead of debug countbitbake/bin/bitbake-worker bitbake/lib/bb/__init__.py bitbake/lib/bb/msg.py +1 more+12 -160 replies
4/15bitbake: lib/bb/msg.py: Add repr for BBLogFormatterbitbake/lib/bb/msg.py+3 -00 replies
5/15bitbake: knotty: Add commented logging_tree codebitbake/lib/bb/ui/knotty.py+5 -00 replies
6/15bitbake: lib/bb/msg.py: Add filter utilitiesbitbake/lib/bb/msg.py+35 -00 replies
7/15bitbake: lib/bb/msg.py: Remove unused filtersbitbake/lib/bb/msg.py+0 -160 replies
8/15bitbake: lib/bb/msg.py: Add helper to set logging configbitbake/lib/bb/msg.py+93 -00 replies
9/15bitbake: knotty: Remove dependency on format variablebitbake/lib/bb/tinfoil.py bitbake/lib/bb/ui/knotty.py+21 -150 replies
10/15bitbake: knotty: Setup logs with config helperbitbake/lib/bb/ui/knotty.py+96 -380 replies
11/15bitbake: worker: Remove unnecessary addDefaultLogFilterbitbake/bin/bitbake-worker+0 -10 replies
12/15bitbake: Log hash equivalence with a different loggerbitbake/lib/bb/runqueue.py bitbake/lib/bb/siggen.py+15 -130 replies
13/15bitbake: Add autobuilder logging configurationbitbake/contrib/autobuilderlog.json+27 -00 replies
14/15bitbake: Lower hash equivalence loggingbitbake/lib/bb/runqueue.py bitbake/lib/bb/siggen.py+7 -70 replies
15/15bitbake-user-manual: Add documentation for BB_LOGCONFIGbitbake/doc/bitbake-user-manual/bitbake-user-manual-execution.xml bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml+108 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/15] Add support for python structured logging

Adds support for users to provide configuration for Python structured logging in bitbake. This gives a high degree of flexibility to the way that logs are capture and displayed, so users can generate very targeted logging if desired. The initial use case for this is to maintain the high level of hash equivalence logging on the Yocto autobuilders, while reducing the noise for most other users.

I've added documentation updates for the new BB_LOGCONFIG variable, but it probably needs some grooming.

Joshua Watt (15):
bitbake: lib/bb/msg.py: Convert default domains to a dictionary
bitbake: knotty: Handle logging messages with specific logger
bitbake: lib/bb/msg.py: Use log level instead of debug count
bitbake: lib/bb/msg.py: Add repr for BBLogFormatter
bitbake: knotty: Add commented logging_tree code
bitbake: lib/bb/msg.py: Add filter utilities
bitbake: lib/bb/msg.py: Remove unused filters
bitbake: lib/bb/msg.py: Add helper to set logging config
bitbake: knotty: Remove dependency on format variable
bitbake: knotty: Setup logs with config helper
bitbake: worker: Remove unnecessary addDefaultLogFilter
bitbake: Log hash equivalence with a different logger
bitbake: Add autobuilder logging configuration
bitbake: Lower hash equivalence logging
bitbake: doc: Add documentation for BB_LOGCONFIG

 bitbake/bin/bitbake-worker                    |   3 +-
 bitbake/contrib/autobuilderlog.json           |  27 +++
 .../bitbake-user-manual-execution.xml         |  97 ++++++++++
 .../bitbake-user-manual-ref-variables.xml     |  11 ++
 bitbake/lib/bb/__init__.py                    |   7 +-
 bitbake/lib/bb/msg.py                         | 172 +++++++++++++----
 bitbake/lib/bb/runqueue.py                    |  13 +-
 bitbake/lib/bb/siggen.py                      |  17 +-
 bitbake/lib/bb/tinfoil.py                     |   4 +-
 bitbake/lib/bb/ui/knotty.py                   | 173 ++++++++++++------
 10 files changed, 419 insertions(+), 105 deletions(-)
 create mode 100644 bitbake/contrib/autobuilderlog.json
Signature · 1 line
2.17.1