Class LoggingValidatorBase
Base class to expose logging and basic tracing to IMetricsPlanValidator
Inheritance
LoggingValidatorBase
Inherited Members
Namespace: Mangrove.MetricSetSyntaxTree.Logging
Assembly: MetricSetSyntaxTree.dll
Syntax
public abstract class LoggingValidatorBase : IMetricsPlanValidator, IGenericMetricsPlanTransformer<List<string>>
Remarks
Subclasses of this can implement the TransformWithTracing(MetricsPlan) method and get trace messages on entry and exit corresponding interface method for free.
Constructors
View SourceLoggingValidatorBase(ILogger, String)
Declaration
public LoggingValidatorBase(ILogger logger, string validatorName)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | |
String | validatorName |
Properties
View SourceLogger
Declaration
protected ILogger Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
ValidatorName
Declaration
protected string ValidatorName { get; }
Property Value
Type | Description |
---|---|
String |
Methods
View SourceTransform(MetricsPlan)
Declaration
public virtual List<string> Transform(MetricsPlan plan)
Parameters
Type | Name | Description |
---|---|---|
MetricsPlan | plan |
Returns
Type | Description |
---|---|
List<String> |
TransformWithTracing(MetricsPlan)
Declaration
public abstract List<string> TransformWithTracing(MetricsPlan plan)
Parameters
Type | Name | Description |
---|---|---|
MetricsPlan | plan |
Returns
Type | Description |
---|---|
List<String> |