You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AddToLoggingScope - Add the correlation ID value to the logger scope for all requests. When true the value of the correlation ID will be added to the logger scope payload.
However, I am new to the whole .NET logging framework and I am not familiar with logger scopes. Could you provide a small code snippet that shows how I can get the Correlationid in each entry of my console logger automagically? That would be really great.
All I want is a console logger that logs a line with Timestamp, LogLevel, CategoryName (=LoggerName???), CorrelationId and LogMessage.
I would be really grateful for any example, because the beauty of this middleware seems to be that it is an easier entrypoint for beginners like myself than the whole Activity and logging jungle.
The text was updated successfully, but these errors were encountered:
Hi there,
the wiki states
However, I am new to the whole .NET logging framework and I am not familiar with logger scopes. Could you provide a small code snippet that shows how I can get the Correlationid in each entry of my console logger automagically? That would be really great.
So far I set up my logging using
All I want is a console logger that logs a line with Timestamp, LogLevel, CategoryName (=LoggerName???), CorrelationId and LogMessage.
I would be really grateful for any example, because the beauty of this middleware seems to be that it is an easier entrypoint for beginners like myself than the whole
Activity
and logging jungle.The text was updated successfully, but these errors were encountered: