Install ReportPortal.Tracer NuGet package.
PS> Install-Package ReportPortal.Tracer
Add custom listener in your App.config file.
<configuration>
...
<system.diagnostics>
<trace>
<listeners>
<add name="ReportPortalListener" type="ReportPortal.Tracer.ReportPortalTracer, ReportPortal.Tracer" />
</listeners>
</trace>
</system.diagnostics>
...
</configuration>