V8 Serilog logging - add the current Url to every message
Hi everyone,
I want to add the current url to every log message. To be more precise: I wrote a sink derived from the email sink and I want the url to appear in the email subject.
is a description of howto create a custom logger, which is enriched with additional properties. This is nice, but how can we alter the current configuration?
What I want to know is, how we can enrich the current implementation, so that the logger which gets injected by Umbraco into the controllers logs the url as an additional parameter.
V8 Serilog logging - add the current Url to every message
Hi everyone,
I want to add the current url to every log message. To be more precise: I wrote a sink derived from the email sink and I want the url to appear in the email subject.
In this article
http://178.128.157.196/cms/umbraco/umbraco-docs/tree/13da545030a0ae9b3c1820ec0b6f2d5b60ac17b0/Getting-Started/Code/Debugging/Logging
is a description of howto create a custom logger, which is enriched with additional properties. This is nice, but how can we alter the current configuration?
What I want to know is, how we can enrich the current implementation, so that the logger which gets injected by Umbraco into the controllers logs the url as an additional parameter.
Does anybody have any insights?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.