Serilog integration for ConfigCat.Client - simple .NET logging with fully-structured events
Install-Package ConfigCat.Client.Serilog
using ConfigCat.Client.Serilog;
Example configuration:
LogLevel logLevel = LogLevel.Warn; // Log only WARNING and higher messages
var clientConfiguration = new AutoPollConfiguration
{
ApiKey = "#YOUR-API-KEY#",
Logger = new SerilogLogger(logLevel);,
PollIntervalSeconds = 5
};
IConfigCatClient client = new ConfigCatClient(clientConfiguration);
Don't forget to call
client.Dispose()
to ensure graceful shutdown.
Contributions are welcome.