From 06d82260d9913dbb6be98aef00830ef4967b1f55 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 21 Oct 2020 12:43:40 +0200 Subject: 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 --- src/vpp/conf/startup.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/vpp/conf/startup.conf') diff --git a/src/vpp/conf/startup.conf b/src/vpp/conf/startup.conf index 32bfea04e91..8b02ac89085 100644 --- a/src/vpp/conf/startup.conf +++ b/src/vpp/conf/startup.conf @@ -5,6 +5,15 @@ unix { full-coredump cli-listen /run/vpp/cli.sock gid vpp + + ## run vpp in the interactive mode + # interactive + + ## do not use colors in terminal output + # nocolor + + ## do not display banner + # nobanner } api-trace { @@ -223,3 +232,11 @@ cpu { # num-buckets 524288 # } # } + +# logging { + ## set default logging level for logging buffer + ## logging levels: emerg, alert,crit, error, warn, notice, info, debug, disabled + # default-log-level debug + ## set default logging level for syslog or stderr output + # default-syslog-log-level info +# } -- cgit 1.2.3-korg