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
pluginContextPluginContext
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
logEventLogEventThe log event to enrich.
propertyFactoryILogEventPropertyFactoryFactory for creating new properties to add to the event.