This patch set rebases and extends some earlier work on logging. Stephen Hemminger (6): eal: unify logging code for FreeBsd and Linux eal: turn off getopt_long error message during eal_log_level eal: fix handling of syslog facility eal: skip stdio on console logging eal: allow user to set default log stream before init eal: add option to put timestamp on console output
v6 - make more of the log arg parsing common - handle --syslog argument better - drop the early logging initialization (need shmem to be setup) - base timestamp on start of primary process (in shmem) .../freebsd_gsg/freebsd_eal_parameters.rst | 32 ++++ doc/guides/linux_gsg/linux_eal_parameters.rst | 5 + lib/eal/common/eal_common_log.c | 6 + lib/eal/common/eal_common_options.c | 8 +- lib/eal/common/eal_internal_cfg.h | 3 + lib/eal/common/eal_log.h | 6 + lib/eal/common/eal_options.h | 2 + lib/eal/freebsd/eal.c | 59 ++----- lib/eal/linux/eal.c | 52 ++---- lib/eal/linux/eal_log.c | 61 ------- lib/eal/linux/meson.build | 1 - lib/eal/unix/eal_log.c | 165 ++++++++++++++++++ lib/eal/unix/meson.build | 1 + lib/eal/windows/eal.c | 3 + 14 files changed, 255 insertions(+), 149 deletions(-) delete mode 100644 lib/eal/linux/eal_log.c create mode 100644 lib/eal/unix/eal_log.c -- 2.39.2