vgribok / modernization-unicorn-store

AWS Sample Application for containerizing a .NET application
Apache License 2.0
1 stars 3 forks source link

Application Logging and Integration with Firelens and FluentBit #30

Open CarmenAPuccio opened 5 years ago

CarmenAPuccio commented 5 years ago

https://aws.amazon.com/blogs/opensource/centralized-container-logging-fluent-bit/ https://github.com/aws/containers-roadmap/tree/master/preview-programs/firelens

We should walk users through the inner workings of application logging at the project level and how to integrate with FluentBit. Perhaps we standardize on a library like the AWS.Logger.AspNetCore library - https://github.com/aws/aws-logging-dotnet#aspnet-core-logging.

vgribok commented 5 years ago

@CarmenAPuccio Would it work if we kept application not dependent on AWS SDK as a base line? For example, it logs to stdout and stderr, and since stdout is easily captured, is there a downside to keeping it logging as is, and/or maybe implementing #31 (structured/JSON) logging for better machine analysis compatibility? Would that work for Fluent.

CarmenAPuccio commented 4 years ago

I think showcasing stdout / stderr is fine. The AWS SDK was just a suggestion but with that said, we should showcase structured logging in JSON format as it makes it much easier to parse and send downstream with FluentBit and/or FluentD.