From a8c3ce89ce5623261b706f952732ae81ad77617a Mon Sep 17 00:00:00 2001 From: chynesNR Date: Wed, 20 Sep 2023 15:15:28 -0700 Subject: [PATCH] fix: Reinstate max number of log files. --- src/Agent/NewRelic/Agent/Core/Logging/LoggerBootstrapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Agent/NewRelic/Agent/Core/Logging/LoggerBootstrapper.cs b/src/Agent/NewRelic/Agent/Core/Logging/LoggerBootstrapper.cs index 34b5f211f..3438256c7 100644 --- a/src/Agent/NewRelic/Agent/Core/Logging/LoggerBootstrapper.cs +++ b/src/Agent/NewRelic/Agent/Core/Logging/LoggerBootstrapper.cs @@ -253,7 +253,7 @@ private static LoggerConfiguration ConfigureRollingLogSink(this LoggerConfigurat fileSizeLimitBytes: 50 * 1024 * 1024, encoding: Encoding.UTF8, rollOnFileSizeLimit: true, - retainedFileCountLimit: null, // unlimited number of files + retainedFileCountLimit: 4, // TODO: Will make configurable shared: true, buffered: false );