Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​Logging.​LoggerMessage

Assembly: Microsoft.Extensions.Logging.Abstractions

Inheritance: object → LoggerMessage

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

Methods

Define​(LogLevel logLevel, EventId eventId, string formatString)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
Define​(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
options The <see cref="T:Microsoft.Extensions.Logging.LogDefineOptions" /> .
DefineScope​(string formatString)
Creates a delegate that can be invoked to create a log scope.
Returns A delegate that, when invoked, creates a log scope.
formatString The named format string.
DefineScope​(string formatString)
Creates a delegate that can be invoked to create a log scope.
Returns A delegate that, when invoked, creates a log scope.
formatString The named format string.
public static System.​Func<​ILogger, T1, T2, System.​IDisposable>
DefineScope​(string formatString)
Creates a delegate that can be invoked to create a log scope.
Returns A delegate that, when invoked, creates a log scope.
formatString The named format string.
public static System.​Func<​ILogger, T1, T2, T3, System.​IDisposable>
DefineScope​(string formatString)
Creates a delegate that can be invoked to create a log scope.
Returns A delegate that, when invoked, creates a log scope.
formatString The named format string.
public static System.​Func<​ILogger, T1, T2, T3, T4, System.​IDisposable>
DefineScope​(string formatString)
Creates a delegate that can be invoked to create a log scope.
Returns A delegate that, when invoked, creates a log scope.
formatString The named format string.
public static System.​Func<​ILogger, T1, T2, T3, T4, T5, System.​IDisposable>
DefineScope​(string formatString)
Creates a delegate that can be invoked to create a log scope.
Returns A delegate that, when invoked, creates a log scope.
formatString The named format string.
public static System.​Func<​ILogger, T1, T2, T3, T4, T5, T6, System.​IDisposable>
DefineScope​(string formatString)
Creates a delegate that can be invoked to create a log scope.
Returns A delegate that, when invoked, creates a log scope.
formatString The named format string.
Define​(LogLevel logLevel, EventId eventId, string formatString)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
Define​(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
options The <see cref="T:Microsoft.Extensions.Logging.LogDefineOptions" /> .
public static System.​Action<​ILogger, T1, T2, System.​Exception>
Define​(LogLevel logLevel, EventId eventId, string formatString)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
public static System.​Action<​ILogger, T1, T2, System.​Exception>
Define​(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
options The <see cref="T:Microsoft.Extensions.Logging.LogDefineOptions" /> .
public static System.​Action<​ILogger, T1, T2, T3, System.​Exception>
Define​(LogLevel logLevel, EventId eventId, string formatString)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
public static System.​Action<​ILogger, T1, T2, T3, System.​Exception>
Define​(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
options The <see cref="T:Microsoft.Extensions.Logging.LogDefineOptions" /> .
public static System.​Action<​ILogger, T1, T2, T3, T4, System.​Exception>
Define​(LogLevel logLevel, EventId eventId, string formatString)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
public static System.​Action<​ILogger, T1, T2, T3, T4, System.​Exception>
Define​(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
options The <see cref="T:Microsoft.Extensions.Logging.LogDefineOptions" /> .
public static System.​Action<​ILogger, T1, T2, T3, T4, T5, System.​Exception>
Define​(LogLevel logLevel, EventId eventId, string formatString)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
public static System.​Action<​ILogger, T1, T2, T3, T4, T5, System.​Exception>
Define​(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
options The <see cref="T:Microsoft.Extensions.Logging.LogDefineOptions" /> .
public static System.​Action<​ILogger, T1, T2, T3, T4, T5, T6, System.​Exception>
Define​(LogLevel logLevel, EventId eventId, string formatString)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
public static System.​Action<​ILogger, T1, T2, T3, T4, T5, T6, System.​Exception>
Define​(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)
Creates a delegate that can be invoked for logging a message.
Returns A delegate that, when invoked, creates a log message.
logLevel The <see cref="T:Microsoft.Extensions.Logging.LogLevel" /> .
eventId The event ID.
formatString The named format string.
options The <see cref="T:Microsoft.Extensions.Logging.LogDefineOptions" /> .
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object