asp.net - Log current page url with NLog -
I am trying to log the current page URL as part of our NLog layout. I suppressed NLog layout variables and nothing has come.
Do anyone know how to get the current page URL as a variable for layout? In addition, it is possible to remove domain names only, so that it can be used in EventLog source attribute?
& lt; Target xsi: type = "trace" name = "trace" layout = "$ {message} $ {aspnet-request: serverVariable = url}" /> You have full access.
Comments
Post a Comment