Skip to content

vishal-h/loggly-csharp

 
 

Repository files navigation

Loggly .NET Driver

This is a .NET driver for loggly.com.

Logging Events

Create a new Logger with your input key:

var logger = new Logger(“my-long-key-that-i-got-when-setting-up-my-http-input”);

Use either a synchronous or asynchronous Log method.

Searching Events

First, setup the username/password you want to connect with:

LogglyConfiguration.Configure(c => c.AuthenticateWith(“username”, “password”));

Next, create a searcher with your domain:

var searcher = new Searcher(“mydomain”);

Finally, use the various Search methods.

Note that searching happens synchronously.

Facets

First, setup the username/password you want to connect with:

LogglyConfiguration.Configure(c => c.AuthenticateWith(“username”, “password”));

Next, create a facet with your domain:

var facet = new Facet(“mydomain”);

Finally, use the various GetDate, GetIp and @GetInput* methods.

Getting facts is always synchronous

About

A .NET driver for loggly.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published