Share via


LoggerMessage.Define Méthode

Définition

Surcharges

Define(LogLevel, EventId, String)

Crée un délégué qui peut être appelé pour journaliser un message.

Define(LogLevel, EventId, String, LogDefineOptions)

Crée un délégué qui peut être appelé pour enregistrer un message.

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

Crée un délégué qui peut être appelé pour enregistrer un message.

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

Crée un délégué qui peut être appelé pour journaliser un message.

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

Crée un délégué qui peut être appelé pour enregistrer un message.

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

Crée un délégué qui peut être appelé pour journaliser un message.

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

Crée un délégué qui peut être appelé pour journaliser un message.

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

Crée un délégué qui peut être appelé pour enregistrer un message.

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

Crée un délégué qui peut être appelé pour journaliser un message.

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

Crée un délégué qui peut être appelé pour enregistrer un message.

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

Crée un délégué qui peut être appelé pour journaliser un message.

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

Crée un délégué qui peut être appelé pour enregistrer un message.

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

Crée un délégué qui peut être appelé pour enregistrer un message.

Define<T1>(LogLevel, EventId, String)

Crée un délégué qui peut être appelé pour journaliser un message.

Define(LogLevel, EventId, String)

Crée un délégué qui peut être appelé pour journaliser un message.

public:
 static Action<Microsoft::Extensions::Logging::ILogger ^, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,Exception> Define (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,Exception?> 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<Microsoft.Extensions.Logging.ILogger, Exception>
Public Shared Function Define (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, Exception)

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

Action<ILogger,Exception>

Délégué qui crée un message de journal quand il est appelé.

S’applique à

Define(LogLevel, EventId, String, LogDefineOptions)

Crée un délégué qui peut être appelé pour enregistrer un message.

public:
 static Action<Microsoft::Extensions::Logging::ILogger ^, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,Exception?> 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<Microsoft.Extensions.Logging.ILogger, Exception>
Public Shared Function Define (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, Exception)

Paramètres

logLevel
LogLevel

Niveau de journalisation.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

options
LogDefineOptions

Le journal définit les options.

Retours

Action<ILogger,Exception>

Délégué qui, lorsqu’il est appelé, crée un message de journal.

S’applique à

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

Crée un délégué qui peut être appelé pour enregistrer un message.

public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, T5, T6, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,T6,Exception?> Define<T1,T2,T3,T4,T5,T6> (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<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, Exception>
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)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

T2

Type du deuxième paramètre passé à la chaîne de format nommée.

T3

Type du troisième paramètre passé à la chaîne de format nommée.

T4

Type du quatrième paramètre passé à la chaîne de format nommée.

T5

Type du cinquième paramètre passé à la chaîne de format nommée.

T6

Type du sixième paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

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

Délégué qui, lorsqu’il est appelé, crée un message de journal.

S’applique à

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

Crée un délégué qui peut être appelé pour journaliser un message.

public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, T5, T6, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,T6,Exception> Define<T1,T2,T3,T4,T5,T6> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,T6,Exception?> Define<T1,T2,T3,T4,T5,T6> (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<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, Exception>
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)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

T2

Type du deuxième paramètre passé à la chaîne de format nommée.

T3

Type du troisième paramètre passé à la chaîne de format nommée.

T4

Type du quatrième paramètre passé à la chaîne de format nommée.

T5

Type du cinquième paramètre passé à la chaîne de format nommée.

T6

Type du sixième paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

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

Délégué qui crée un message de journal quand il est appelé.

S’applique à

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

Crée un délégué qui peut être appelé pour enregistrer un message.

public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, T5, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,Exception?> Define<T1,T2,T3,T4,T5> (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<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, 'T5, Exception>
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)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

T2

Type du deuxième paramètre passé à la chaîne de format nommée.

T3

Type du troisième paramètre passé à la chaîne de format nommée.

T4

Type du quatrième paramètre passé à la chaîne de format nommée.

T5

Type du cinquième paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

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

Délégué qui, lorsqu’il est appelé, crée un message de journal.

S’applique à

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

Crée un délégué qui peut être appelé pour journaliser un message.

public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, T5, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,Exception> Define<T1,T2,T3,T4,T5> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,Exception?> Define<T1,T2,T3,T4,T5> (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<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, 'T5, Exception>
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)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

T2

Type du deuxième paramètre passé à la chaîne de format nommée.

T3

Type du troisième paramètre passé à la chaîne de format nommée.

T4

Type du quatrième paramètre passé à la chaîne de format nommée.

T5

Type du cinquième paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

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

Délégué qui crée un message de journal quand il est appelé.

S’applique à

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

Crée un délégué qui peut être appelé pour journaliser un message.

public:
generic <typename T1, typename T2, typename T3, typename T4>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,Exception> Define<T1,T2,T3,T4> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,Exception?> Define<T1,T2,T3,T4> (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<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, Exception>
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)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

T2

Type du deuxième paramètre passé à la chaîne de format nommée.

T3

Type du troisième paramètre passé à la chaîne de format nommée.

T4

Type du quatrième paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

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

Délégué qui crée un message de journal quand il est appelé.

S’applique à

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

Crée un délégué qui peut être appelé pour enregistrer un message.

public:
generic <typename T1, typename T2, typename T3, typename T4>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,Exception?> Define<T1,T2,T3,T4> (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<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, Exception>
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)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

T2

Type du deuxième paramètre passé à la chaîne de format nommée.

T3

Type du troisième paramètre passé à la chaîne de format nommée.

T4

Type du quatrième paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

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

Délégué qui, lorsqu’il est appelé, crée un message de journal.

S’applique à

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

Crée un délégué qui peut être appelé pour journaliser un message.

public:
generic <typename T1, typename T2, typename T3>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,Exception> Define<T1,T2,T3> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,Exception?> Define<T1,T2,T3> (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<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, Exception>
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)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

T2

Type du deuxième paramètre passé à la chaîne de format nommée.

T3

Type du troisième paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

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

Délégué qui crée un message de journal quand il est appelé.

S’applique à

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

Crée un délégué qui peut être appelé pour enregistrer un message.

public:
generic <typename T1, typename T2, typename T3>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,Exception?> Define<T1,T2,T3> (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<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, Exception>
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)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

T2

Type du deuxième paramètre passé à la chaîne de format nommée.

T3

Type du troisième paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

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

Délégué qui, lorsqu’il est appelé, crée un message de journal.

S’applique à

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

Crée un délégué qui peut être appelé pour journaliser un message.

public:
generic <typename T1, typename T2>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,Exception> Define<T1,T2> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,Exception?> Define<T1,T2> (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<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, Exception>
Public Shared Function Define(Of T1, T2) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, T2, Exception)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

T2

Type du deuxième paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

Action<ILogger,T1,T2,Exception>

Délégué qui crée un message de journal quand il est appelé.

S’applique à

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

Crée un délégué qui peut être appelé pour enregistrer un message.

public:
generic <typename T1, typename T2>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,Exception?> Define<T1,T2> (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<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, Exception>
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)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

T2

Type du deuxième paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

Action<ILogger,T1,T2,Exception>

Délégué qui, lorsqu’il est appelé, crée un message de journal.

S’applique à

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

Crée un délégué qui peut être appelé pour enregistrer un message.

public:
generic <typename T1>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,Exception?> Define<T1> (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<Microsoft.Extensions.Logging.ILogger, 'T1, Exception>
Public Shared Function Define(Of T1) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, Exception)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Niveau de journalisation.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

options
LogDefineOptions

Le journal définit les options.

Retours

Action<ILogger,T1,Exception>

Délégué qui, lorsqu’il est appelé, crée un message de journal.

S’applique à

Define<T1>(LogLevel, EventId, String)

Crée un délégué qui peut être appelé pour journaliser un message.

public:
generic <typename T1>
 static Action<Microsoft::Extensions::Logging::ILogger ^, T1, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,Exception> Define<T1> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,Exception?> Define<T1> (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<Microsoft.Extensions.Logging.ILogger, 'T1, Exception>
Public Shared Function Define(Of T1) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, Exception)

Paramètres de type

T1

Type du premier paramètre passé à la chaîne de format nommée.

Paramètres

logLevel
LogLevel

Le LogLevel.

eventId
EventId

ID de l’événement.

formatString
String

Chaîne de format nommée.

Retours

Action<ILogger,T1,Exception>

Délégué qui crée un message de journal quand il est appelé.

S’applique à