Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

LoggerMessage Class

Definition

Namespace:
Microsoft.Extensions.Logging
Assembly:
Microsoft.Extensions.Logging.Abstractions.dll
Package:
Microsoft.Extensions.Logging.Abstractions v11.0.0-preview.5.26302.115
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Creates delegates that can be later cached to log messages in a performant way.

public ref class LoggerMessage abstract sealed
public static class LoggerMessage
type LoggerMessage = class
Public Class LoggerMessage
Inheritance
LoggerMessage

Methods

Name Description
Define(LogLevel, EventId, String, LogDefineOptions)

Creates a delegate that can be invoked for logging a message.

Define(LogLevel, EventId, String)

Creates a delegate that can be invoked for logging a message.

Define<T1,T2,T3,T4,T5,T6>(LogLevel, EventId, String, LogDefineOptions)

Creates a delegate that can be invoked for logging a message.

Define<T1,T2,T3,T4,T5,T6>(LogLevel, EventId, String)

Creates a delegate that can be invoked for logging a message.

Define<T1,T2,T3,T4,T5>(LogLevel, EventId, String, LogDefineOptions)

Creates a delegate that can be invoked for logging a message.

Define<T1,T2,T3,T4,T5>(LogLevel, EventId, String)

Creates a delegate that can be invoked for logging a message.

Define<T1,T2,T3,T4>(LogLevel, EventId, String, LogDefineOptions)

Creates a delegate that can be invoked for logging a message.

Define<T1,T2,T3,T4>(LogLevel, EventId, String)

Creates a delegate that can be invoked for logging a message.

Define<T1,T2,T3>(LogLevel, EventId, String, LogDefineOptions)

Creates a delegate that can be invoked for logging a message.

Define<T1,T2,T3>(LogLevel, EventId, String)

Creates a delegate that can be invoked for logging a message.

Define<T1,T2>(LogLevel, EventId, String, LogDefineOptions)

Creates a delegate that can be invoked for logging a message.

Define<T1,T2>(LogLevel, EventId, String)

Creates a delegate that can be invoked for logging a message.

Define<T1>(LogLevel, EventId, String, LogDefineOptions)

Creates a delegate that can be invoked for logging a message.

Define<T1>(LogLevel, EventId, String)

Creates a delegate that can be invoked for logging a message.

DefineScope(String)

Creates a delegate that can be invoked to create a log scope.

DefineScope<T1,T2,T3,T4,T5,T6>(String)

Creates a delegate that can be invoked to create a log scope.

DefineScope<T1,T2,T3,T4,T5>(String)

Creates a delegate that can be invoked to create a log scope.

DefineScope<T1,T2,T3,T4>(String)

Creates a delegate that can be invoked to create a log scope.

DefineScope<T1,T2,T3>(String)

Creates a delegate that can be invoked to create a log scope.

DefineScope<T1,T2>(String)

Creates a delegate that can be invoked to create a log scope.

DefineScope<T1>(String)

Creates a delegate that can be invoked to create a log scope.

Applies to


Feedback

Was this page helpful?