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

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -