[v9,0/5] Logging unification and timestamp

Message ID 20240318220432.7486-1-stephen@networkplumber.org (mailing list archive)
Headers
Series Logging unification and timestamp |

Message

Stephen Hemminger March 18, 2024, 10:02 p.m. UTC
  Improvements and unification of logging library (for 24.07 release).
This is update to earlier patch set.

v9 - reorder patches and fix FreeBSD build

v8 - rebase to current code base where logging in in lib/log
     use stdio for log timestamp
     initialization changes (setup log earlier)

Stephen Hemminger (5):
  log: unify logging code
  eal: make eal_log_level_parse common
  eal: initialize logging before plugins
  eal: allow user to set default log stream before init
  eal: add option to put timestamp on console output

 app/dumpcap/main.c                            |  3 +
 app/pdump/main.c                              |  3 +
 app/proc-info/main.c                          |  3 +
 app/test/test_eal_flags.c                     |  9 +++
 doc/guides/linux_gsg/linux_eal_parameters.rst | 27 ---------
 doc/guides/prog_guide/log_lib.rst             | 28 +++++++++-
 lib/eal/common/eal_common_options.c           | 56 ++++++++++++++++++-
 lib/eal/common/eal_options.h                  |  3 +
 lib/eal/freebsd/eal.c                         | 50 +++--------------
 lib/eal/linux/eal.c                           | 55 +++---------------
 lib/eal/unix/eal_unix_log.c                   |  0
 lib/eal/windows/eal.c                         | 35 ------------
 lib/log/log.c                                 |  6 ++
 lib/log/log_freebsd.c                         | 12 ----
 lib/log/log_internal.h                        | 11 ++++
 lib/log/{log_linux.c => log_unix.c}           | 36 +++++++++++-
 lib/log/log_windows.c                         |  6 ++
 lib/log/meson.build                           | 12 ++--
 lib/log/version.map                           |  2 +
 19 files changed, 184 insertions(+), 173 deletions(-)
 create mode 100644 lib/eal/unix/eal_unix_log.c
 delete mode 100644 lib/log/log_freebsd.c
 rename lib/log/{log_linux.c => log_unix.c} (58%)