Class PluginNameEnricher
- Namespace
- CounterStrikeSharp.API.Core.Logging
- Assembly
- CounterStrikeSharp.API.dll
public class PluginNameEnricher : ILogEventEnricher
- Inheritance
-
objectPluginNameEnricher
- Implements
-
ILogEventEnricher
Constructors
PluginNameEnricher(PluginContext)
public PluginNameEnricher(PluginContext pluginContext)
Parameters
pluginContext
PluginContext
Fields
PropertyName
public const string PropertyName = "PluginName"
Field Value
Properties
Context
public PluginContext Context { get; }
Property Value
Methods
Enrich(LogEvent, ILogEventPropertyFactory)
Enrich the log event.
public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)
Parameters
logEvent
LogEventThe log event to enrich.
propertyFactory
ILogEventPropertyFactoryFactory for creating new properties to add to the event.