Log library enhancements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v30 Latest13 patches 0 repliesNew
- v2913 patches 0 repliesSuperseded
- v2813 patches 2 repliesSuperseded
Earlier versions · 26
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v27 | 14 patches | 1 reply | Superseded | |
| v26 | 15 patches | 5 replies | Superseded | |
| v25 | 15 patches | 2 replies | Superseded | |
| v24 | 15 patches | 2 replies | Superseded | |
| v23 | 15 patches | 18 replies | Superseded | |
| v22 | 15 patches | 1 reply | Superseded | |
| v21 | 14 patches | 7 replies | Superseded | |
| v20 | 14 patches | 1 reply | Superseded | |
| v19 | 15 patches | 0 replies | Superseded | |
| v18 | 15 patches | 0 replies | Superseded | |
| v17 | 15 patches | 0 replies | Superseded | |
| v16 | 15 patches | 8 replies | Superseded | |
| v15 | 15 patches | 0 replies | Superseded | |
| v14 | 15 patches | 0 replies | Superseded | |
| v13 | 11 patches | 1 reply | Superseded | |
| v12 | 14 patches | 1 reply | Superseded | |
| v11 | 9 patches | 1 reply | Superseded | |
| v10 | 10 patches | 7 replies | Superseded | |
| v9 | 5 patches | 7 replies | Superseded | |
| v8 | 5 patches | 0 replies | Superseded | |
| v7 | 5 patches | 1 reply | Superseded | |
| v6 | 6 patches | 0 replies | Superseded | |
| v5 | 6 patches | 0 replies | Superseded | |
| v4 | 5 patches | 4 replies | Superseded | |
| v3 | 2 patches | 10 replies | Superseded | |
| v2 | 2 patches | 1 reply | Superseded |
Patches in v30 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | maintainers: add for log libraryMAINTAINERS | +1 | 0 replies | |
| 2/13 | windows: make getopt functions have const propertieslib/ lib/ | +16 | 0 replies | |
| 3/13 | windows: update os shimlib/ lib/ | +15 | 0 replies | |
| 4/13 | eal: make eal_log_level_parse commonlib/ lib/ lib/ +2 more | +41 | 0 replies | |
| 5/13 | eal: do not duplicate rte_init_alert() messageslib/ lib/ lib/ | +2 | 0 replies | |
| 6/13 | eal: change rte_exit() output to match rte_log()lib/ | +2 | 0 replies | |
| 7/13 | log: rework syslog handlingapp/ doc/ doc/ +15 more | +211 | 0 replies | |
| 8/13 | eal: initialize log before everything elselib/ lib/ lib/ +1 more | +31 | 0 replies | |
| 9/13 | log: add hook for printing log messageslib/ | +7 | 0 replies | |
| 10/13 | log: add timestamp optionapp/ doc/ lib/ +10 more | +341 | 0 replies | |
| 11/13 | log: add support for systemd journallib/ lib/ lib/ +4 more | +203 | 0 replies | |
| 12/13 | log: colorize log outputapp/ doc/ lib/ +7 more | +307 | 0 replies | |
| 13/13 | doc: add release note about log librarydoc/ | +20 | 0 replies |
Reviews trailers per patch
All 13 patches have a Reviewed-by or Acked-by.
| Patch | Tyler Retzlaff | Morten Brørup | Chengwen Feng | Bruce Richardson | Dmitry Kozlyuk |
|---|---|---|---|---|---|
| 1/13 | A-b | A-b | A-b | A-b | |
| 2/13 | A-b | A-b | A-b | A-b | A-b |
| 3/13 | A-b | A-b | A-b | A-b | |
| 4/13 | A-b | A-b | A-b | ||
| 5/13 | A-b | A-b | A-b | A-b | |
| 6/13 | A-b | A-b | A-b | A-b | |
| 7/13 | A-b | A-b | A-b | ||
| 8/13 | A-b | A-b | A-b | A-b | |
| 9/13 | A-b | A-b | A-b | ||
| 10/13 | A-b | A-b | |||
| 11/13 | A-b | A-b | |||
| 12/13 | A-b | A-b | A-b | ||
| 13/13 | A-b | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH v30 00/13] Log library enhancements
Improvements and unification of logging library.
This version works on all platforms: Linux, Windows and FreeBSD.
This is update to rework patch set. It adds several new features to the console log output.
* Putting a timestamp on console output which is useful for analyzing performance of startup codes. Timestamp is optional and must be enabled on command line.
* Displaying console output with colors.
It uses the standard conventions used by many other Linux commands for colorized display. The default is to enable color if the console output is going to a terminal. But it can be always on or disabled by command line flag. This default was chosen based on what dmesg(1) command does.
Color is used by many tools (vi, iproute2, git) because it is helpful; DPDK drivers and libraries print lots of not very useful messages. And having error messages highlighted in bold face helps. This might also get users to pay more attention to error messages. Many bug reports have earlier messages that are lost because there are so many info messages.
* Add support for automatic detection of systemd journal protocol. If running as systemd service will get enhanced logging.
* Use of syslog is optional and the meaning of the --syslog flag has changed. The default is *not* to use unless requested.
Add myself as maintainer for log because by now have added more than previous authors.
v30 - add isatty() to windows os shim
fix wording in release note etc.
Stephen Hemminger (13):
maintainers: add for log library
windows: make getopt functions have const properties
windows: update os shim
eal: make eal_log_level_parse common
eal: do not duplicate rte_init_alert() messages
eal: change rte_exit() output to match rte_log()
log: rework syslog handling
eal: initialize log before everything else
log: add hook for printing log messages
log: add timestamp option
log: add support for systemd journal
log: colorize log output
doc: add release note about log library
MAINTAINERS | 1 + app/test/test_eal_flags.c | 66 ++++- .../freebsd_gsg/freebsd_eal_parameters.rst | 27 ++ .../prog_guide/env_abstraction_layer.rst | 6 +- doc/guides/prog_guide/log_lib.rst | 60 ++++- doc/guides/rel_notes/release_24_11.rst | 20 ++ lib/eal/common/eal_common_debug.c | 6 +- lib/eal/common/eal_common_options.c | 122 +++++---- lib/eal/common/eal_internal_cfg.h | 1 - lib/eal/common/eal_options.h | 5 + lib/eal/freebsd/eal.c | 65 ++--- lib/eal/linux/eal.c | 68 +---- lib/eal/windows/eal.c | 50 +--- lib/eal/windows/getopt.c | 23 +- lib/eal/windows/include/getopt.h | 8 +- lib/eal/windows/include/rte_os_shim.h | 12 + lib/log/log.c | 83 ++++-- lib/log/log_color.c | 214 ++++++++++++++++ lib/log/log_freebsd.c | 12 - lib/log/log_internal.h | 22 +- lib/log/log_journal.c | 152 +++++++++++ lib/log/log_linux.c | 61 ----- lib/log/log_private.h | 53 ++++ lib/log/log_syslog.c | 108 ++++++++ lib/log/log_timestamp.c | 240 ++++++++++++++++++ lib/log/log_windows.c | 18 -- lib/log/meson.build | 12 +- lib/log/version.map | 5 +- 28 files changed, 1168 insertions(+), 352 deletions(-) create mode 100644 lib/log/log_color.c delete mode 100644 lib/log/log_freebsd.c create mode 100644 lib/log/log_journal.c delete mode 100644 lib/log/log_linux.c create mode 100644 lib/log/log_private.h create mode 100644 lib/log/log_syslog.c create mode 100644 lib/log/log_timestamp.c delete mode 100644 lib/log/log_windows.c
Signature · 1 line
2.45.2