Skip to content

DiagnosticIds

NexusLabs.Needlr.Logging.Analyzers

DiagnosticIds Class

Diagnostic IDs for logging-specific Needlr analyzers.

public static class DiagnosticIds

Inheritance System.Object 🡒 DiagnosticIds

Remarks

Logging analyzer codes use the NDLRLOG prefix.

Fields

DiagnosticIds.ContainingTypeMustBePartial Field

NDLRLOG004: the type containing a [NeedlrLoggerMessage] method must be partial.

public const string ContainingTypeMustBePartial = "NDLRLOG004";

Field Value

System.String

DiagnosticIds.LoggerNotFound Field

NDLRLOG005: a [NeedlrLoggerMessage] method has no accessible ILogger.

public const string LoggerNotFound = "NDLRLOG005";

Field Value

System.String

DiagnosticIds.MustBePartial Field

NDLRLOG001: a method marked with [NeedlrLoggerMessage] must be partial.

public const string MustBePartial = "NDLRLOG001";

Field Value

System.String

DiagnosticIds.MustNotBeGeneric Field

NDLRLOG003: a method marked with [NeedlrLoggerMessage] must not be generic.

public const string MustNotBeGeneric = "NDLRLOG003";

Field Value

System.String

DiagnosticIds.MustReturnVoid Field

NDLRLOG002: a method marked with [NeedlrLoggerMessage] must return void.

public const string MustReturnVoid = "NDLRLOG002";

Field Value

System.String

DiagnosticIds.TooManyParameters Field

NDLRLOG006: a [NeedlrLoggerMessage] method has more than six non-exception parameters and therefore cannot use the allocation-free LoggerMessage.Define fast path.

public const string TooManyParameters = "NDLRLOG006";

Field Value

System.String