BedeGaming / sinks-rollingfile

A serilog sink for rolling files based on size and time
Apache License 2.0
15 stars 21 forks source link

ITextFormatter support for both sinks #27

Closed jonryan closed 7 years ago

jonryan commented 7 years ago

Allows for the overloaded option to pass an ITextFormatter from the Serilog framework. This enhances the options of the Alternative Rolling File Sink as it can now output in JSON, Raw, or Display formats. If there are new formats added to the Serilog framework, they would be supported as well.

This is functionality that exists in the Serilog Rolling File sink and should be extended to the Alternative Rolling File sink.

AndyWardle commented 7 years ago

Thanks for this @jonryan , this is now available from 2.0.7