summaryrefslogtreecommitdiffstats
path: root/logsmanagement/fluent_bit_build/flb-log-fmt.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
commitbe1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch)
tree9754ff1ca740f6346cf8483ec915d4054bc5da2d /logsmanagement/fluent_bit_build/flb-log-fmt.patch
parentInitial commit. (diff)
downloadnetdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.tar.xz
netdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.zip
Adding upstream version 1.44.3.upstream/1.44.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'logsmanagement/fluent_bit_build/flb-log-fmt.patch')
-rw-r--r--logsmanagement/fluent_bit_build/flb-log-fmt.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/logsmanagement/fluent_bit_build/flb-log-fmt.patch b/logsmanagement/fluent_bit_build/flb-log-fmt.patch
new file mode 100644
index 00000000..b3429c41
--- /dev/null
+++ b/logsmanagement/fluent_bit_build/flb-log-fmt.patch
@@ -0,0 +1,52 @@
+diff --git a/src/flb_log.c b/src/flb_log.c
+index d004af8af..6ed27b8c6 100644
+--- a/src/flb_log.c
++++ b/src/flb_log.c
+@@ -509,31 +509,31 @@ int flb_log_construct(struct log_message *msg, int *ret_len,
+
+ switch (type) {
+ case FLB_LOG_HELP:
+- header_title = "help";
++ header_title = "HELP";
+ header_color = ANSI_CYAN;
+ break;
+ case FLB_LOG_INFO:
+- header_title = "info";
++ header_title = "INFO";
+ header_color = ANSI_GREEN;
+ break;
+ case FLB_LOG_WARN:
+- header_title = "warn";
++ header_title = "WARN";
+ header_color = ANSI_YELLOW;
+ break;
+ case FLB_LOG_ERROR:
+- header_title = "error";
++ header_title = "ERROR";
+ header_color = ANSI_RED;
+ break;
+ case FLB_LOG_DEBUG:
+- header_title = "debug";
++ header_title = "DEBUG";
+ header_color = ANSI_YELLOW;
+ break;
+ case FLB_LOG_IDEBUG:
+- header_title = "debug";
++ header_title = "DEBUG";
+ header_color = ANSI_CYAN;
+ break;
+ case FLB_LOG_TRACE:
+- header_title = "trace";
++ header_title = "TRACE";
+ header_color = ANSI_BLUE;
+ break;
+ }
+@@ -559,7 +559,7 @@ int flb_log_construct(struct log_message *msg, int *ret_len,
+ }
+
+ len = snprintf(msg->msg, sizeof(msg->msg) - 1,
+- "%s[%s%i/%02i/%02i %02i:%02i:%02i%s]%s [%s%5s%s] ",
++ "%s%s%i-%02i-%02i %02i:%02i:%02i%s:%s fluent-bit %s%s%s: ",
+ /* time */ /* type */
+
+ /* time variables */