Skip to content

AmazonS3 is not able to read the formatter parameter. #61

@krishamagar

Description

@krishamagar
var logger = new LoggerConfiguration()
     .WriteTo.AmazonS3(
                formatter:new CompactJsonFormatter(),
                path,
                bucketName,
                Amazon.RegionEndpoint.APSouth1,
                awsAccessKey,
                awsSecretKey,
                LogEventLevel.Information,
                "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}",
                new CultureInfo("en-US"),
                levelSwitch,
                Serilog.Sinks.AmazonS3.RollingInterval.Minute,
                Encoding.Unicode,
                e => Console.WriteLine($"An error occurred in my sink: {e.Message}"),
                bucketPath,
                eagerlyEmitFirstEvent:false
                )

                           .CreateLogger();

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions