Coree.NETStandard
  • Docs
  • API
Show / Hide Table of Contents
  • Coree.NETStandard.Classes
    • ThreadSafeCollection<T>
  • Coree.NETStandard.Extensions
    • CancellationTokenExtensions
    • SerilogExtensions
    • ServiceProviderExtensions
  • Coree.NETStandard.Extensions.Enumerable
    • EnumerableExtension
  • Coree.NETStandard.Extensions.ServiceCollection
    • ServiceCollectionExtensions
  • Coree.NETStandard.Extensions.Stringbuilder
    • StringBuilderExtension
  • Coree.NETStandard.Extensions.Strings
    • StringExtensions
  • Coree.NETStandard.HostedService
    • HostedServiceSampleImplementation
    • HostedServiceSampleImplementationOptions
  • Coree.NETStandard.Logging
    • SourceContextShortEnricher
  • Coree.NETStandard.Options
    • HostedServicesCollectionOptionsProvider<T>
    • IHostedServicesCollectionOptionsProvider<T>
  • Coree.NETStandard.Services
    • FileService
    • IFileService
    • IProcessService
    • IRuntimeInsights
    • ProcessRunExitCodeState
    • ProcessRunResult
    • ProcessService
    • RuntimeInsightsService
  • Coree.NETStandard.SpectreConsole
    • CommandAppExtensions
    • HostBuilderExtensions
    • ServiceCollectionExtensions
    • SpectreConsoleHostedService
    • SpectreConsoleHostedService.ExitCode
    • SpectreConsoleTypeRegistrar
    • SpectreConsoleTypeResolver

Class SourceContextShortEnricher

Implements
ILogEventEnricher
Namespace: Coree.NETStandard.Logging
Assembly: Coree.NETStandard.dll
Syntax
public class SourceContextShortEnricher : ILogEventEnricher

Constructors

| Edit this page View Source

SourceContextShortEnricher(bool, bool, bool, int)

Declaration
public SourceContextShortEnricher(bool cutTTypes = true, bool removeDots = true, bool removeSuffixes = true, int padding = 15)
Parameters
Type Name Description
bool cutTTypes
bool removeDots
bool removeSuffixes
int padding

Methods

| Edit this page View Source

Enrich(LogEvent, ILogEventPropertyFactory)

Enrich the log event.

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.

Implements

Serilog.Core.ILogEventEnricher
  • Edit this page
  • View Source
In this article
Back to top