|request-id||Optional. Request id to include in log messages sent by JSNLog to the server. See remarks.|
This can only be used in ASP.NET Core web applications.
As part of the
JSNLog gets the request id of the request, or if it can't, generates its own unique id. It sends that with all log messages to the server so log messages belonging to the same request can be correlated (details).
If however you generate your own request ids and you want JSNLog to use that instead, pass in your request id.
- If your web site does not already have a _ViewImports.cshtml file, add an empty file with that name to your Views or Pages directory.
Add this line to your _ViewImports.cshtml file:
@addTagHelper "*, jsnlog"