Skip to content

reportportal/logger-net-serilog

Repository files navigation

Build status NuGet Badge

Installation

Install ReportPortal.Serilog NuGet package into your project with tests.

PS> Install-Package ReportPortal.Serilog

How to use

Add ReportPortal sink to logger.

using ReportPortal.Serilog;
using Serilog;

...
Log.Logger = new LoggerConfiguration().WriteTo.ReportPortal().CreateLogger();
...

And use logger to write log messages.

Log.Information("My log message");