Class PluginTraceConfiguration
Contains the configuration data for tracing a plugin.
[DataContract]
public class PluginTraceConfiguration
- Inheritance
-
PluginTraceConfiguration
- Inherited Members
Constructors
PluginTraceConfiguration()
Default constructor.
public PluginTraceConfiguration()
PluginTraceConfiguration(LogLevel, string, bool)
public PluginTraceConfiguration(LogLevel logLevel, string indent, bool logContext)
Parameters
Properties
Default
Gets the default trace configuration.
public static PluginTraceConfiguration Default { get; }
Property Value
Indent
Gets/Sets an inidicates if tracing is enabled.
public string Indent { get; }
Property Value
LogContext
Gets/Sets an indication of whether the plugin context should be traced.
public bool LogContext { get; }
Property Value
LogLevel
Gets/Sets the trace level.
public LogLevel LogLevel { get; }
Property Value
- LogLevel
Remarks
This is used along with the list of Users to determine if entries will be written to the trace log.
Methods
CreateFromConfiguration(string?, string?)
Gets a trace configuration from the unsecure/secure configuration. The secure configuration will take precendence over the unsecure configuration. The entire trace configuration must be present in one of the configuration strings or the default configuration is returned.
public static PluginTraceConfiguration CreateFromConfiguration(string? unsecureConfig, string? secureConfig)