-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
questionFurther information is requestedFurther information is requested
Description
{
var logger = new LoggerConfiguration().WriteTo
.AmazonS3(
"folder1\folder2\" + fileName + "\" + date + "\" + "Log_",
bucketName,
Amazon.RegionEndpoint.APSouth1,
awsAccessKey,
awsSecretKey,
restrictedToMinimumLevel: LogEventLevel.Verbose,
outputTemplate: "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}",
new CultureInfo("en-US"),
levelSwitch: levelSwitch,
rollingInterval: Serilog.Sinks.AmazonS3.RollingInterval.Day,
encoding: Encoding.Unicode,
failureCallback: e => Console.WriteLine($"An error occured in my sink: {e.Message}")
)
.CreateLogger();
logger.Information(message);
}
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested