ChangemakerStudios / serilog-sinks-mongodb

A sink for Serilog that writes events to MongoDB
Apache License 2.0
92 stars 53 forks source link

When Serilog writes to MongoDb, what class does it use? #18

Closed ghost closed 8 years ago

ghost commented 8 years ago

Sorry for a basic question, but I wonder if there is a class in the Serilog libs that is used to fill in the blank.

var r = await _collection.FindAsync<T>(filter);

What class would T be if I am reading from the MongoDB that I just wrote to with Serilog?

Jaben commented 8 years ago

Try:

Serilog.Events.LogEvent