Search Results for

    Show / Hide Table of Contents
    View Source

    Class HttpRequestNumberEnricher

    Enrich log events with a HttpRequestNumber unique within the current logging session. Original source - https://github.com/serilog-web/classic/blob/master/src/SerilogWeb.Classic/Classic/Enrichers/HttpRequestNumberEnricher.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 HttpRequestNumberEnricher : ILogEventEnricher

    Constructors

    View Source

    HttpRequestNumberEnricher(IRequestCache)

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

    Methods

    View Source

    Enrich(LogEvent, ILogEventPropertyFactory)

    Enrich the log event with the number 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
      • HttpRequestNumberEnricher(IRequestCache)
    • Methods
      • Enrich(LogEvent, ILogEventPropertyFactory)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX