vlib: print logs to stderr if interactive or nosyslog set 71/29571/5
authorDamjan Marion <damarion@cisco.com>
Wed, 21 Oct 2020 10:43:40 +0000 (12:43 +0200)
committerDamjan Marion <dmarion@me.com>
Wed, 21 Oct 2020 17:46:01 +0000 (17:46 +0000)
commit06d82260d9913dbb6be98aef00830ef4967b1f55
treeb17623257674ab57fb912b805a57b29211975cd2
parent210fda269147e47ff434c0a194d17e6cef0fdd74
vlib: print logs to stderr if interactive or nosyslog set

If VPP is started in interactive mode, instead of sending logs to syslog
server we print them directly to stderr.
Output is colorized, but that can be turned off with unix { nocolor }

Type: improvement
Change-Id: I9a0f0803e4cba2849a6efa0b6a86b9614ed33ced
Signed-off-by: Damjan Marion <damarion@cisco.com>
14 files changed:
src/plugins/dhcp/client.c
src/plugins/dpdk/cryptodev/cryptodev.c
src/plugins/dpdk/cryptodev/cryptodev_dp_api.c
src/plugins/dpdk/device/dpdk.h
src/plugins/dpdk/device/init.c
src/plugins/dpdk/ipsec/ipsec.c
src/vlib/log.c
src/vlib/log.h
src/vlib/unix/cli.c
src/vlib/unix/main.c
src/vlib/unix/unix.h
src/vnet/bfd/bfd_main.c
src/vpp/conf/startup.conf
src/vppinfra/error.c