commit | 4a117c70b621e78cbea3a9066508bbc4a106fb3c | [log] [tgz] |
---|---|---|
author | Anthony DiGirolamo <tonymd@google.com> | Fri Sep 02 15:04:12 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 02 15:04:12 2022 +0000 |
tree | df87cd18cc78a8f6ffc769c52e890cabe0b6c990 | |
parent | 9a7e6a4548afa89dd42036138539cac1b4237cb4 [diff] |
pw_console: Json Log file formatter New JsonLogFormatter handler to save pw_console device logs with metadata fields to json. For example running: $ pw-system-console --verbose -d /dev/ttyACM0 -b 115200 \ --json-logfile logs.json \ --proto-globs pw_rpc/echo.proto \ --token-databases \ out/stm32f429i_disc1_stm32cube.size_optimized/obj/pw_system/bin/system_example.elf $ tail -F logs.json | jq { "message": "System init", "levelno": 20, "levelname": "INF", "args": [ "0:00", "pw_system ", "System init" ], "fields": { "module": "pw_system", "file": "pw_system/init.cc", "timestamp": "0:00" } } { "message": "Pigweed is fun 10x!", "levelno": 20, "levelname": "INF", "args": [ "0:00:00.003", "user_init ", "Pigweed is fun 9x!" ], "fields": { "module": "user_init", "file": "pw_system/example_user_app_init.cc", "timestamp": "0:00:00.003" } } Change-Id: Ifc96459e074477597c6492fd40d9a2e89cef142b Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/86460 Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.