Skip to content

camiller2/ConfigCat.Client.Serilog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%