EventSourceLoggerFactoryExtensions Class

Definition

Extension methods for the ILoggerFactory class.

C#
public static class EventSourceLoggerFactoryExtensions
Inheritance
EventSourceLoggerFactoryExtensions

Methods

AddEventSourceLogger(ILoggingBuilder)

Adds a logger that writes messages to the LoggingEventSource instance.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)