SeriLog for .Net Core
If you are using SeriLog as your logger in .Net Core, use Coralogix Sink to push logs to your Coralogix account.
Setup
STEP 1. Fetch SeriLog.Sinks.Coralogix from NuGet.
STEP 2. Configure Coralogix Sinks with your Send-Your-Data API key, ApplicationName, and SubSystemName.
Here is an example:
using Serilog.Sinks.Coralogix;
using Serilog;
....
var log = new LoggerConfiguration()
.WriteTo.CoralogixSink(new CoralogixSinkOptions
{
PrivateKey = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
ApplicationName = "myApp",
SubsystemName = "mySubs"
})
.CreateLogger();
STEP 3. Set up your endpoint URL by selecting the Coralogix Bulk Logs endpoint associated with your Coralogix domain.
Support
Need help?
Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.
Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].
Theme
Light