Class ILoggerExtensions
Extension methods for ILogger.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public static class ILoggerExtensionsMethods
View SourceLogEventDebug(ILogger, LogEventArgs, EventId?, Exception?)
Logs a debug event.
Declaration
public static void LogEventDebug(this ILogger logger, LogEventArgs state, EventId? eventId = null, Exception? exception = null)Parameters
| Type | Name | Description | 
|---|---|---|
| ILogger | logger | The logger. | 
| LogEventArgs | state | The object to log. | 
| EventId? | eventId | The event ID, if known. | 
| Exception | exception | The exception, if any. | 
LogEventError(ILogger, LogEventArgs, EventId?, Exception?)
Logs an error event.
Declaration
public static void LogEventError(this ILogger logger, LogEventArgs state, EventId? eventId = null, Exception? exception = null)Parameters
| Type | Name | Description | 
|---|---|---|
| ILogger | logger | The logger. | 
| LogEventArgs | state | The object to log. | 
| EventId? | eventId | The event ID, if known. | 
| Exception | exception | The exception, if any. | 
LogEventInformation(ILogger, LogEventArgs, EventId?, Exception?)
Logs an information event.
Declaration
public static void LogEventInformation(this ILogger logger, LogEventArgs state, EventId? eventId = null, Exception? exception = null)Parameters
| Type | Name | Description | 
|---|---|---|
| ILogger | logger | The logger. | 
| LogEventArgs | state | The object to log. | 
| EventId? | eventId | The event ID, if known. | 
| Exception | exception | The exception, if any. | 
LogEventWarning(ILogger, LogEventArgs, EventId?, Exception?)
Logs a warning event.
Declaration
public static void LogEventWarning(this ILogger logger, LogEventArgs state, EventId? eventId = null, Exception? exception = null)Parameters
| Type | Name | Description | 
|---|---|---|
| ILogger | logger | The logger. | 
| LogEventArgs | state | The object to log. | 
| EventId? | eventId | The event ID, if known. | 
| Exception | exception | The exception, if any. |