diff --git a/sdk/src/Core/Amazon.Runtime/Internal/Util/Logger.cs b/sdk/src/Core/Amazon.Runtime/Internal/Util/Logger.cs index 4b3fcfd87430..0b5b678bbeaa 100644 --- a/sdk/src/Core/Amazon.Runtime/Internal/Util/Logger.cs +++ b/sdk/src/Core/Amazon.Runtime/Internal/Util/Logger.cs @@ -46,8 +46,7 @@ private Logger(Type type) { loggers = new List(3); #pragma warning disable - InternalLog4netLogger log4netLogger = new InternalLog4netLogger(type); - loggers.Add(log4netLogger); + loggers.Add(new InternalLog4netLogger(type)); #pragma warning restore } else @@ -56,8 +55,7 @@ private Logger(Type type) } loggers.Add(new InternalConsoleLogger(type)); - InternalSystemDiagnosticsLogger sdLogger = new InternalSystemDiagnosticsLogger(type); - loggers.Add(sdLogger); + loggers.Add(new InternalSystemDiagnosticsLogger(type)); ConfigureLoggers(); AWSConfigs.PropertyChanged += ConfigsChanged; }