Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 698 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 698 Bytes

A syslog Sink for Serilog. H/T to the NLog implementation, from which this project is based.

Build status

Configuration

Log.Logger = new LoggerConfiguration()
    .WriteTo.Syslog("localhost", 514)
    .CreateLogger();

Options

Only two options are required: syslogserver and port.

Two others are optional:

  • batchsize : The default batch size of messages that the serilog sink should send.
  • batchPeriodInSeconds : The interval (in seconds) after which the sink should flush.