Skip to content

IEnableLogger interface

Attributes: [ComVisible(false)]

Defined in

Namespace: Splat Assembly: Splat.Logging.dll Full name: Splat.IEnableLogger Modifiers: public abstract

Summary

Marks a class as eligible for logger injection by supporting frameworks or libraries.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Remarks

Implement this interface in your class to get access to the Log() Mixin, which will give you a Logger that includes the class name in the log, indicating that a type can participate in logging infrastructure that relies on marker interfaces.

This interface does not define any members and serves only as a marker for logger enablement.