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/vlib/unix/unix.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vlib/unix/unix.h') diff --git a/src/vlib/unix/unix.h b/src/vlib/unix/unix.h index 9fa95a0c1d6..44dcf712e8d 100644 --- a/src/vlib/unix/unix.h +++ b/src/vlib/unix/unix.h @@ -60,6 +60,8 @@ typedef struct #define UNIX_FLAG_INTERACTIVE (1 << 0) #define UNIX_FLAG_NODAEMON (1 << 1) #define UNIX_FLAG_NOSYSLOG (1 << 2) +#define UNIX_FLAG_NOCOLOR (1 << 3) +#define UNIX_FLAG_NOBANNER (1 << 4) /* CLI listen socket. */ -- cgit 1.2.3-korg