serilog / serilog-formatting-compact-reader

A reader for Serilog's compact JSON format
Apache License 2.0
32 stars 16 forks source link

Support reading a single event from string #2

Closed nblumhardt closed 8 years ago

nblumhardt commented 8 years ago

When the source text is a single event, the TextReader-based API is overkill. It would be nice to support something like:

string s = // ...
var evt = LogEventReader.ReadSingle(s);

(Method name/containing type need some thought.)