LoggerMessage.DefineScope Method

Definition

Overloads

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.

DefineScope(String)

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

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

public static Func<Microsoft.Extensions.Logging.ILogger,IDisposable?> DefineScope (string formatString);

Parameters

formatString
String

The named format string.

Returns

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

Applies to

.NET 9 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

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

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

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

public static Func<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,T6,IDisposable?> DefineScope<T1,T2,T3,T4,T5,T6> (string formatString);

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

formatString
String

The named format string.

Returns

Func<ILogger,T1,T2,T3,T4,T5,T6,IDisposable>

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

Applies to

.NET 9 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

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

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

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

public static Func<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,IDisposable?> DefineScope<T1,T2,T3,T4,T5> (string formatString);

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

formatString
String

The named format string.

Returns

Func<ILogger,T1,T2,T3,T4,T5,IDisposable>

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

Applies to

.NET 9 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

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

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

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

public static Func<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,IDisposable?> DefineScope<T1,T2,T3,T4> (string formatString);

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

formatString
String

The named format string.

Returns

Func<ILogger,T1,T2,T3,T4,IDisposable>

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

Applies to

.NET 9 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

DefineScope<T1,T2,T3>(String)

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

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

public static Func<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,IDisposable?> DefineScope<T1,T2,T3> (string formatString);

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

formatString
String

The named format string.

Returns

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

Applies to

.NET 9 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

DefineScope<T1,T2>(String)

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

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

public static Func<Microsoft.Extensions.Logging.ILogger,T1,T2,IDisposable?> DefineScope<T1,T2> (string formatString);

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

formatString
String

The named format string.

Returns

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

Applies to

.NET 9 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

DefineScope<T1>(String)

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

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

public static Func<Microsoft.Extensions.Logging.ILogger,T1,IDisposable?> DefineScope<T1> (string formatString);

Type Parameters

T1

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

Parameters

formatString
String

The named format string.

Returns

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

Applies to

.NET 9 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)