ConfigCat.Client.Serilog

Serilog integration for ConfigCat.Client - simple .NET logging with fully-structured events


Keywords
ConfigCat, config, configuration, remoteconfiguration, ConfigCatClient, featureflags, featuretoggle, featureswitch, feature, canaryrelease, softlaunch, releasestrategy, Serilog, logging, semantic, structured, Error-Reporting, Crash-Reporting, Exception-Handling
License
MIT
Install
Install-Package ConfigCat.Client.Serilog -Version 2.0.1

Documentation

ConfigCat.Client.Serilog

Serilog integration for ConfigCat.Client - simple .NET logging with fully-structured events

Icon

NuGet | GitHub

Getting Started

1. Install the package with NuGet

Install-Package ConfigCat.Client.Serilog

2. Import ConfigCat.Client.Serilog to your application

using ConfigCat.Client.Serilog;

3. Configure

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.

4. Useful docs

Contributing

Contributions are welcome.