Table of Contents

Class PluginNameEnricher

Namespace
CounterStrikeSharp.API.Core.Logging
Assembly
CounterStrikeSharp.API.dll
public class PluginNameEnricher : ILogEventEnricher
Inheritance
PluginNameEnricher
Implements
ILogEventEnricher

Constructors

PluginNameEnricher(PluginContext)

public PluginNameEnricher(PluginContext pluginContext)

Parameters

pluginContext PluginContext

Fields

PropertyName

public const string PropertyName = "PluginName"

Field Value

string

Properties

Context

public PluginContext Context { get; }

Property Value

PluginContext

Methods

Enrich(LogEvent, ILogEventPropertyFactory)

Enrich the log event.

public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)

Parameters

logEvent LogEvent

The log event to enrich.

propertyFactory ILogEventPropertyFactory

Factory for creating new properties to add to the event.