DiagnosticIds
NexusLabs.Needlr.Logging.Analyzers¶
DiagnosticIds Class¶
Diagnostic IDs for logging-specific Needlr analyzers.
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.
Field Value¶
DiagnosticIds.LoggerNotFound Field¶
NDLRLOG005: a [NeedlrLoggerMessage] method has no accessible ILogger.
Field Value¶
DiagnosticIds.MustBePartial Field¶
NDLRLOG001: a method marked with [NeedlrLoggerMessage] must be partial.
Field Value¶
DiagnosticIds.MustNotBeGeneric Field¶
NDLRLOG003: a method marked with [NeedlrLoggerMessage] must not be generic.
Field Value¶
DiagnosticIds.MustReturnVoid Field¶
NDLRLOG002: a method marked with [NeedlrLoggerMessage] must return void.
Field Value¶
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.