LoggerExtensions 類別

定義

常見案例的 ILogger 擴充方法。

public ref class LoggerExtensions abstract sealed
public static class LoggerExtensions
type LoggerExtensions = class
Public Module LoggerExtensions
繼承
LoggerExtensions

方法

名稱 Description
BeginScope(ILogger, String, Object[])

格式化訊息並建立範圍。

Log(ILogger, LogLevel, EventId, Exception, String, Object[])

格式化並撰寫指定的日誌訊息。

Log(ILogger, LogLevel, EventId, String, Object[])

格式化並撰寫指定的日誌訊息。

Log(ILogger, LogLevel, Exception, String, Object[])

格式化並撰寫指定的日誌訊息。

Log(ILogger, LogLevel, String, Object[])

格式化並撰寫指定的日誌訊息。

LogCritical(ILogger, EventId, Exception, String, Object[])

格式化並撰寫關鍵日誌訊息。

LogCritical(ILogger, EventId, String, Object[])

格式化並撰寫關鍵日誌訊息。

LogCritical(ILogger, Exception, String, Object[])

格式化並撰寫關鍵日誌訊息。

LogCritical(ILogger, String, Object[])

格式化並撰寫關鍵日誌訊息。

LogDebug(ILogger, EventId, Exception, String, Object[])

格式化並撰寫除錯日誌訊息。

LogDebug(ILogger, EventId, String, Object[])

格式化並撰寫除錯日誌訊息。

LogDebug(ILogger, Exception, String, Object[])

格式化並撰寫除錯日誌訊息。

LogDebug(ILogger, String, Object[])

格式化並撰寫除錯日誌訊息。

LogError(ILogger, EventId, Exception, String, Object[])

格式化並寫入錯誤日誌訊息。

LogError(ILogger, EventId, String, Object[])

格式化並寫入錯誤日誌訊息。

LogError(ILogger, Exception, String, Object[])

格式化並寫入錯誤日誌訊息。

LogError(ILogger, String, Object[])

格式化並寫入錯誤日誌訊息。

LogInformation(ILogger, EventId, Exception, String, Object[])

格式化並撰寫資訊日誌訊息。

LogInformation(ILogger, EventId, String, Object[])

格式化並撰寫資訊日誌訊息。

LogInformation(ILogger, Exception, String, Object[])

格式化並撰寫資訊日誌訊息。

LogInformation(ILogger, String, Object[])

格式化並撰寫資訊日誌訊息。

LogTrace(ILogger, EventId, Exception, String, Object[])

格式化並寫入追蹤日誌訊息。

LogTrace(ILogger, EventId, String, Object[])

格式化並寫入追蹤日誌訊息。

LogTrace(ILogger, Exception, String, Object[])

格式化並寫入追蹤日誌訊息。

LogTrace(ILogger, String, Object[])

格式化並寫入追蹤日誌訊息。

LogWarning(ILogger, EventId, Exception, String, Object[])

格式化並撰寫警告日誌訊息。

LogWarning(ILogger, EventId, String, Object[])

格式化並撰寫警告日誌訊息。

LogWarning(ILogger, Exception, String, Object[])

格式化並撰寫警告日誌訊息。

LogWarning(ILogger, String, Object[])

格式化並撰寫警告日誌訊息。

適用於