Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 1.07 KB

README.md

File metadata and controls

18 lines (12 loc) · 1.07 KB

Serilog.Sinks.Loggr

Build status

A Serilog sink that writes events to Loggr.

Loggr is a cloud hosted solution to track users, events and other kinds of items. It provides analytics and notifications and more. Register for an account at their website and [find](http://docs.loggr.net/post#A Quick Example) your logkey and apikey. Pass those to the loggr sink using the extension.

Package - Serilog.Sinks.Loggr | Platforms - .NET 4.5

var log = new LoggerConfiguration()
    .WriteTo.Loggr("<log key>", "<api key>")
    .CreateLogger();

As Loggr can track users, the sink will try to find a property called UserName and pass that to Loggr as a dedicated property. You can change the name of the property in one of the settings of the extension of the sink. The rest of the properties are being send as data elements to Loggr.