LogMethodMarkupAttribute Class

Definition

Assembly XenoAtom.Logging.dll
Inherits ObjectAttribute
Show inherited members (42)

Declares a markup-aware logging method implemented by the XenoAtom.Logging source generator.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class LogMethodMarkupAttribute : Attribute

Remarks

The attributed method must be static and partial, and its first parameter must be a Logger. Generated methods route through LoggerMarkupExtensions.LogMarkup and mark the message as markup. The project using this attribute must reference the XenoAtom.Logging.Terminal package.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Properties (4)