Microsoft.Extensions.Logging.Abstractions
Represents a storage of common scope data.
Executes callback for each currently active scope objects in order of creation.
All callbacks are guaranteed to be called inline from this method.
The callback to be executed for every scope object
The state object to be passed into the callback
Adds scope object to the list
The scope object
The token that removes scope on dispose.
Represents a type used to perform logging.
Aggregates most logging patterns to a single method.
Writes a log entry.
Entry will be written on this level.
Id of the event.
The entry to be written. Can be also an object.
The exception related to this entry.
Function to create a string message of the and .
Checks if the given is enabled.
level to be checked.
true if enabled.
Begins a logical operation scope.
The identifier for the scope.
An IDisposable that ends the logical operation scope on dispose.
Represents a type used to configure the logging system and create instances of from
the registered s.
Creates a new instance.
The category name for messages produced by the logger.
The .
Adds an to the logging system.
The .
A generic interface for logging where the category name is derived from the specified
type name.
Generally used to enable activation of a named from dependency injection.
The type who's name is used for the logger category name.
Represents a type that can create instances of .
Creates a new instance.
The category name for messages produced by the logger.
LogValues to enable formatting options supported by .
This also enables using {NamedformatItem} in the format string.
Formatter to convert the named format items like {NamedformatItem} to format.
An empty scope without any logic
Minimalistic logger that does nothing.
An used to create instance of
that logs nothing.
This returns a instance which logs nothing.
This method ignores the parameter and does nothing.
Minimalistic logger that does nothing.
This method ignores the parameters and does nothing.
Provider for the .
The format string '{0}' does not have the expected number of named parameters. Expected {1} parameter(s) but found {2} parameter(s).
The format string '{0}' does not have the expected number of named parameters. Expected {1} parameter(s) but found {2} parameter(s).
Represents a that is able to consume external scope information.
Sets external scope information source for logger provider.
ILogger extension methods for common scenarios.
Formats and writes a debug log message.
The to write to.
The event id associated with the log.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogDebug(0, exception, "Error while processing request from {Address}", address)
Formats and writes a debug log message.
The to write to.
The event id associated with the log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogDebug(0, "Processing request from {Address}", address)
Formats and writes a debug log message.
The to write to.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogDebug(exception, "Error while processing request from {Address}", address)
Formats and writes a debug log message.
The to write to.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogDebug("Processing request from {Address}", address)
Formats and writes a trace log message.
The to write to.
The event id associated with the log.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogTrace(0, exception, "Error while processing request from {Address}", address)
Formats and writes a trace log message.
The to write to.
The event id associated with the log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogTrace(0, "Processing request from {Address}", address)
Formats and writes a trace log message.
The to write to.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogTrace(exception, "Error while processing request from {Address}", address)
Formats and writes a trace log message.
The to write to.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogTrace("Processing request from {Address}", address)
Formats and writes an informational log message.
The to write to.
The event id associated with the log.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogInformation(0, exception, "Error while processing request from {Address}", address)
Formats and writes an informational log message.
The to write to.
The event id associated with the log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogInformation(0, "Processing request from {Address}", address)
Formats and writes an informational log message.
The to write to.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogInformation(exception, "Error while processing request from {Address}", address)
Formats and writes an informational log message.
The to write to.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogInformation("Processing request from {Address}", address)
Formats and writes a warning log message.
The to write to.
The event id associated with the log.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogWarning(0, exception, "Error while processing request from {Address}", address)
Formats and writes a warning log message.
The to write to.
The event id associated with the log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogWarning(0, "Processing request from {Address}", address)
Formats and writes a warning log message.
The to write to.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogWarning(exception, "Error while processing request from {Address}", address)
Formats and writes a warning log message.
The to write to.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogWarning("Processing request from {Address}", address)
Formats and writes an error log message.
The to write to.
The event id associated with the log.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogError(0, exception, "Error while processing request from {Address}", address)
Formats and writes an error log message.
The to write to.
The event id associated with the log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogError(0, "Processing request from {Address}", address)
Formats and writes an error log message.
The to write to.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogError(exception, "Error while processing request from {Address}", address)
Formats and writes an error log message.
The to write to.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogError("Processing request from {Address}", address)
Formats and writes a critical log message.
The to write to.
The event id associated with the log.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogCritical(0, exception, "Error while processing request from {Address}", address)
Formats and writes a critical log message.
The to write to.
The event id associated with the log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogCritical(0, "Processing request from {Address}", address)
Formats and writes a critical log message.
The to write to.
The exception to log.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogCritical(exception, "Error while processing request from {Address}", address)
Formats and writes a critical log message.
The to write to.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
logger.LogCritical("Processing request from {Address}", address)
Formats and writes a log message at the specified log level.
The to write to.
Entry will be written on this level.
Format string of the log message.
An object array that contains zero or more objects to format.
Formats and writes a log message at the specified log level.
The to write to.
Entry will be written on this level.
The event id associated with the log.
Format string of the log message.
An object array that contains zero or more objects to format.
Formats and writes a log message at the specified log level.
The to write to.
Entry will be written on this level.
The exception to log.
Format string of the log message.
An object array that contains zero or more objects to format.
Formats and writes a log message at the specified log level.
The to write to.
Entry will be written on this level.
The event id associated with the log.
The exception to log.
Format string of the log message.
An object array that contains zero or more objects to format.
Formats the message and creates a scope.
The to create the scope in.
Format string of the log message in message template format. Example: "User {User} logged in from {Address}"
An object array that contains zero or more objects to format.
A disposable scope object. Can be null.
using(logger.BeginScope("Processing request from {Address}", address))
{
}
Default implemenation of
ILoggerFactory extension methods for common scenarios.
Creates a new ILogger instance using the full name of the given type.
The type.
The factory.
Creates a new ILogger instance using the full name of the given type.
The factory.
The type.
Creates delegates which can be later cached to log messages in a performant way.
Creates a delegate which can be invoked to create a log scope.
The named format string
A delegate which when invoked creates a log scope.
Creates a delegate which can be invoked to create a log scope.
The type of the first parameter passed to the named format string.
The named format string
A delegate which when invoked creates a log scope.
Creates a delegate which can be invoked to create a log scope.
The type of the first parameter passed to the named format string.
The type of the second parameter passed to the named format string.
The named format string
A delegate which when invoked creates a log scope.
Creates a delegate which can be invoked to create a log scope.
The type of the first parameter passed to the named format string.
The type of the second parameter passed to the named format string.
The type of the third parameter passed to the named format string.
The named format string
A delegate which when invoked creates a log scope.
Creates a delegate which can be invoked for logging a message.
The
The event id
The named format string
A delegate which when invoked creates a log message.
Creates a delegate which can be invoked for logging a message.
The type of the first parameter passed to the named format string.
The
The event id
The named format string
A delegate which when invoked creates a log message.
Creates a delegate which can be invoked for logging a message.
The type of the first parameter passed to the named format string.
The type of the second parameter passed to the named format string.
The
The event id
The named format string
A delegate which when invoked creates a log message.
Creates a delegate which can be invoked for logging a message.
The type of the first parameter passed to the named format string.
The type of the second parameter passed to the named format string.
The type of the third parameter passed to the named format string.
The
The event id
The named format string
A delegate which when invoked creates a log message.
Creates a delegate which can be invoked for logging a message.
The type of the first parameter passed to the named format string.
The type of the second parameter passed to the named format string.
The type of the third parameter passed to the named format string.
The type of the fourth parameter passed to the named format string.
The
The event id
The named format string
A delegate which when invoked creates a log message.
Creates a delegate which can be invoked for logging a message.
The type of the first parameter passed to the named format string.
The type of the second parameter passed to the named format string.
The type of the third parameter passed to the named format string.
The type of the fourth parameter passed to the named format string.
The type of the fifth parameter passed to the named format string.
The
The event id
The named format string
A delegate which when invoked creates a log message.
Creates a delegate which can be invoked for logging a message.
The type of the first parameter passed to the named format string.
The type of the second parameter passed to the named format string.
The type of the third parameter passed to the named format string.
The type of the fourth parameter passed to the named format string.
The type of the fifth parameter passed to the named format string.
The type of the sixth parameter passed to the named format string.
The
The event id
The named format string
A delegate which when invoked creates a log message.
Delegates to a new instance using the full name of the given type, created by the
provided .
The type.
Creates a new .
The factory.
Defines logging severity levels.
Logs that contain the most detailed messages. These messages may contain sensitive application data.
These messages are disabled by default and should never be enabled in a production environment.
Logs that are used for interactive investigation during development. These logs should primarily contain
information useful for debugging and have no long-term value.
Logs that track the general flow of the application. These logs should have long-term value.
Logs that highlight an abnormal or unexpected event in the application flow, but do not otherwise cause the
application execution to stop.
Logs that highlight when the current flow of execution is stopped due to a failure. These should indicate a
failure in the current activity, not an application-wide failure.
Logs that describe an unrecoverable application or system crash, or a catastrophic failure that requires
immediate attention.
Not used for writing log messages. Specifies that a logging category should not write any messages.