This is a simple Microsoft.Extensions.Logging
implementation that write JSON to the console.
The main use case for this library is to use it in Dockerized application, and let Docker runtime route stdout to something like fluentd for further aggregation/processing.
Install it from NuGet: https://www.nuget.org/packages/JsonConsole.Extensions.Logging/
dotnet pack `
--configuration Release `
-p:Version=0.1.0-pre `
.\src\JsonConsole.Extensions.Logging\JsonConsole.Extensions.Logging.csproj
dotnet publish -c Release .\src\JsonConsole.Extensions.Logging.Cli
docker build --pull --tag jsonconsole:latest .\src\JsonConsole.Extensions.Logging.Cli
docker run -it --rm jsonconsole:latest
dotnet run `
--configuration Release `
--project .\src\JsonConsole.Extensions.Logging.Benchmarks `
-- `
--filter SingleLogEntry