From 5a5f66528c805ecfb839643e170fd0e5d863b45a Mon Sep 17 00:00:00 2001 From: Gabor Gyimesi Date: Tue, 2 Jul 2024 15:27:46 +0200 Subject: [PATCH] MINIFICPP-2424 Increase default maximum log entry size --- CONFIGURE.md | 2 +- libminifi/include/core/logging/Logger.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONFIGURE.md b/CONFIGURE.md index d37dd7445b..6b9e7182fd 100644 --- a/CONFIGURE.md +++ b/CONFIGURE.md @@ -742,7 +742,7 @@ There are some additional properties that can be used to shorten log messages: logger.include.uuid=false # You can set the maximum length of the log entries - max.log.entry.length=1024 + max.log.entry.length=4096 **NOTE:** All log configuration properties can be changed through C2 protocol with the property update command, using the `nifi.log.` prefix. For example to change the root log level with the `logger.root` property through C2, the C2 property update command should change the `nifi.log.logger.root` property. diff --git a/libminifi/include/core/logging/Logger.h b/libminifi/include/core/logging/Logger.h index 4a011021f5..d3ddac807a 100644 --- a/libminifi/include/core/logging/Logger.h +++ b/libminifi/include/core/logging/Logger.h @@ -38,7 +38,7 @@ namespace org::apache::nifi::minifi::core::logging { -inline constexpr size_t LOG_BUFFER_SIZE = 1024; +inline constexpr size_t LOG_BUFFER_SIZE = 4096; class LoggerControl { public: