Skip to content

Commit

Permalink
use exact size
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmarbach committed Jul 4, 2024
1 parent c724bd5 commit 1c71599
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sdk/src/Core/Amazon.Runtime/Internal/Util/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,18 @@ private Logger()
#endif
private Logger(Type type)
{
loggers = new List<InternalLogger>(3);

if(!InternalSDKUtils.IsRunningNativeAot())
{
loggers = new List<InternalLogger>(3);
#pragma warning disable
InternalLog4netLogger log4netLogger = new InternalLog4netLogger(type);
loggers.Add(log4netLogger);
#pragma warning restore
}
else
{
loggers = new List<InternalLogger>(2);
}

loggers.Add(new InternalConsoleLogger(type));
InternalSystemDiagnosticsLogger sdLogger = new InternalSystemDiagnosticsLogger(type);
Expand Down

0 comments on commit 1c71599

Please sign in to comment.