Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added useCompactFormat flag to support posting events using Serilog.Formatting.Compact #25

Merged
merged 1 commit into from
Jul 7, 2016

Conversation

nblumhardt
Copy link
Member

The compact format in Serilog.Formatting.Compact is faster to emit and more compact on the wire.

Usage:

Log.Logger = new LoggerConfiguration()
    .WriteTo.Seq("http://localhost:5341", useCompactFormat: true)
    .CreateLogger();

This will cause the sink to send newline-delimited compact events to /api/events/raw with the content type application/vnd.serilog.clef. This requires Seq 3.3, which should be available on the downloads page in about 8 minutes ;-).

@nblumhardt nblumhardt merged commit a20505b into datalust:dev Jul 7, 2016
@nblumhardt nblumhardt mentioned this pull request Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant