Copied to clipboard

Flag this post as spam?

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

  • mmaty 99 posts 228 karma points
    Jul 23, 2019 @ 07:25

    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

    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: