This repository contains the sources for the client-side components of the LogFlake product suite for applications logs and performance collection for .NET Framework applications.
NuGet Package Name | Version | Downloads |
---|---|---|
LogFlake.Client.NetFramework |
- Retrieve your application-key from Application Settings in LogFlake UI;
- Store the application-key in your
Web.config
file and name itLogFlakeAppId
; - In the entry-point of your application, add the following line:
StaticLogFlake.Configure(ConfigurationManager.AppSettings["LogFlakeAppId"], "https://app.logflake.io/");
- Use it in your service
// SimpleService.cs
public void MyMethod()
{
try
{
doSomething();
StaticLogFlake.Instance.SendLog(LogLevels.DEBUG, "correlation", "Hello World");
}
catch (MeaningfulException ex)
{
StaticLogFlake.Instance.SendException(e);
}
}