Error

ILogger.Error method

写入错误消息。 错误日志消息提供有关应用程序流中不可恢复事件的信息。

public void Error(string message, Exception exception)
范围 类型 描述
message String 错误信息。
exception Exception 例外。

例外

例外 (健康)状况
ArgumentNullException 抛出时message一片空白。
ArgumentNullException 抛出时exception一片空白。

也可以看看