Hello All,
I am having problems getting the SourceContext to emit properly based on parameter position.
If I do this:
logger.Information( "{Time:ss':'fff} ({Since:ss':'fff}): {Event} {SourceContext}", tracker.Time, tracker.Mark(), @event )
The SourceContext emits as expected.
However, if I do this:
logger.Information( "{Time:ss':'fff} ({Since:ss':'fff}): {SourceContext} {Event}", tracker.Time, tracker.Mark(), null, @event )
or this:
logger.Information( "{Time:ss':'fff} ({Since:ss':'fff}): {SourceContext} {Event}", tracker.Time, tracker.Mark(), @event )
This does not emit as expected.
Is there a way to emit the SourceContext as I am trying to do here? Or is the only way to get it to work as expected is by the first example?
Thank you,
Michael