Language

LoggerMessage.Define Method

Definition

Overloads

Name Description
Define(LogLevel, EventId, String)

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

Define(LogLevel, EventId, String, LogDefineOptions)

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

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(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(LogLevel, EventId, String)

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

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(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(LogLevel, EventId, String, LogDefineOptions)

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

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(LogLevel, EventId, String)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action
Public Shared Function Define (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, Exception)

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String, LogDefineOptions)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action
Public Shared Function Define (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, Exception)

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String, LogDefineOptions)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action
Public Shared Function Define(Of T1, T2, T3, T4, T5, T6) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, T2, T3, T4, T5, T6, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

T2

The type of the second parameter passed to the named format string.

T3

The type of the third parameter passed to the named format string.

T4

The type of the fourth parameter passed to the named format string.

T5

The type of the fifth parameter passed to the named format string.

T6

The type of the sixth parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

Action<ILogger,T1,T2,T3,T4,T5,T6,Exception>

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action
Public Shared Function Define(Of T1, T2, T3, T4, T5, T6) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, T2, T3, T4, T5, T6, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

T2

The type of the second parameter passed to the named format string.

T3

The type of the third parameter passed to the named format string.

T4

The type of the fourth parameter passed to the named format string.

T5

The type of the fifth parameter passed to the named format string.

T6

The type of the sixth parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

Action<ILogger,T1,T2,T3,T4,T5,T6,Exception>

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String, LogDefineOptions)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action
Public Shared Function Define(Of T1, T2, T3, T4, T5) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, T2, T3, T4, T5, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

T2

The type of the second parameter passed to the named format string.

T3

The type of the third parameter passed to the named format string.

T4

The type of the fourth parameter passed to the named format string.

T5

The type of the fifth parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

Action<ILogger,T1,T2,T3,T4,T5,Exception>

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action
Public Shared Function Define(Of T1, T2, T3, T4, T5) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, T2, T3, T4, T5, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

T2

The type of the second parameter passed to the named format string.

T3

The type of the third parameter passed to the named format string.

T4

The type of the fourth parameter passed to the named format string.

T5

The type of the fifth parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

Action<ILogger,T1,T2,T3,T4,T5,Exception>

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action
Public Shared Function Define(Of T1, T2, T3, T4) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, T2, T3, T4, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

T2

The type of the second parameter passed to the named format string.

T3

The type of the third parameter passed to the named format string.

T4

The type of the fourth parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

Action<ILogger,T1,T2,T3,T4,Exception>

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String, LogDefineOptions)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action
Public Shared Function Define(Of T1, T2, T3, T4) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, T2, T3, T4, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

T2

The type of the second parameter passed to the named format string.

T3

The type of the third parameter passed to the named format string.

T4

The type of the fourth parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

Action<ILogger,T1,T2,T3,T4,Exception>

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action
Public Shared Function Define(Of T1, T2, T3) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, T2, T3, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

T2

The type of the second parameter passed to the named format string.

T3

The type of the third parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String, LogDefineOptions)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action
Public Shared Function Define(Of T1, T2, T3) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, T2, T3, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

T2

The type of the second parameter passed to the named format string.

T3

The type of the third parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action
Public Shared Function Define(Of T1, T2) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, T2, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

T2

The type of the second parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String, LogDefineOptions)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action
Public Shared Function Define(Of T1, T2) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, T2, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

T2

The type of the second parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String, LogDefineOptions)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action
Public Shared Function Define(Of T1) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

A delegate that, when invoked, creates a log message.

Applies to

Define(LogLevel, EventId, String)

Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs
Source:
LoggerMessage.cs

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

public:
generic 
 static Action ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action
Public Shared Function Define(Of T1) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, Exception)

Type Parameters

T1

The type of the first parameter passed to the named format string.

Parameters

logLevel
LogLevel

The LogLevel.

eventId
EventId

The event ID.

formatString
String

The named format string.

Returns

A delegate that, when invoked, creates a log message.

Applies to