Skip to content

ransagy/wsc.LogDNA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wsc.LogDNA

.NET Standard 2.0 client for the LogDNA service.

Based off of the work done by Red Bear Software @ https://github.com/RedBearSys/RedBear.LogDNA

Install-Package wsc.LogDNA

Allows log data to be sent to LogDNA using managed code.

private const string IngestionKey = "PUT-KEY-HERE";

public static void Main()
{
  var config = new ClientConfiguration(IngestionKey) { Tags = new[] { "foo", "bar" } };
  IApiClient client = new HttpApiClient(config, httpClient);
  await client.ConnectAsync().ConfigureAwait(false);

  client.AddLine(new LogLine("MyLog", "From Default Client"));

  client.Flush();
  client.Disconnect();
}

About

.NET Client for the LogDNA sevice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%