Search Results for

    Show / Hide Table of Contents
    View Source

    Class HttpRequestIdEnricher

    Enrich log events with a HttpRequestId GUID. Original source - https://github.com/serilog-web/classic/blob/master/src/SerilogWeb.Classic/Classic/Enrichers/HttpRequestIdEnricher.cs Nupkg: 'Serilog.Web.Classic' contains handlers and extra bits we do not want

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Logging.Serilog.Enrichers
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class HttpRequestIdEnricher : ILogEventEnricher

    Constructors

    View Source

    HttpRequestIdEnricher(IRequestCache)

    Declaration
    public HttpRequestIdEnricher(IRequestCache requestCache)
    Parameters
    Type Name Description
    IRequestCache requestCache

    Fields

    View Source

    HttpRequestIdPropertyName

    The property name added to enriched log events.

    Declaration
    public const string HttpRequestIdPropertyName = "HttpRequestId"
    Field Value
    Type Description
    System.String

    Methods

    View Source

    Enrich(LogEvent, ILogEventPropertyFactory)

    Enrich the log event with an id assigned to the currently-executing HTTP request, if any.

    Declaration
    public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)
    Parameters
    Type Name Description
    LogEvent logEvent

    The log event to enrich.

    ILogEventPropertyFactory propertyFactory

    Factory for creating new properties to add to the event.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • HttpRequestIdEnricher(IRequestCache)
    • Fields
      • HttpRequestIdPropertyName
    • Methods
      • Enrich(LogEvent, ILogEventPropertyFactory)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX