RehanSaeed/Serilog.Exceptions

PushProperty and a data object

Alex-Dinu opened this issue · 1 comments

_logger.Information("{@DaTa}", data); writes out the data object properties and values just fine. How do I do the same thing with PushProperty? I tried using (LogContext.PushProperty("{@DaTa}", data)) but all it does is .ToString() which is essentially the class name.

Thanks

Never mind. I saw the answer as soon as I submitted the question. Set the last parameter to true....