Error

ILogger.Error method

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

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

也可以看看