in src/AWS.Logger.AspNetCore/AWSLoggerBuilderExtensions.cs [47:60]
public static ILoggingBuilder AddAWSProvider(this ILoggingBuilder builder, AWSLoggerConfigSection configSection, Func<LogLevel, object, Exception, string> formatter = null)
{
// If configSection is null. Assuming the logger is being activated in a debug environment
// and skip adding the provider. We don't want to prevent developers running their application
// locally because they don't have access or want to use AWS for their local development.
if (configSection == null)
{
return builder;
}
var provider = new AWSLoggerProvider(configSection, formatter);
builder.AddProvider(provider);
return builder;
}