Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mmaty 114 posts 288 karma points
    Jul 23, 2019 @ 07:25
    mmaty
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft