Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
krishamagar opened this issue Sep 7, 2023 · 0 comments
Open

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

krishamagar opened this issue Sep 7, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@krishamagar
Copy link

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();
@SeppPenner SeppPenner self-assigned this Nov 16, 2023
@SeppPenner SeppPenner changed the title AmazonS3 is not able to read the formatter paramter. AmazonS3 is not able to read the formatter parameter. Dec 7, 2023
@SeppPenner SeppPenner added the bug Something isn't working label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants