OrleansLoggerExtension.Error Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Error(ILogger, ErrorCode, String, Exception) | |
Error(ILogger, Int32, String, Exception) |
Writes a log entry at the Error level |
Error(ILogger, ErrorCode, String, Exception)
- Source:
- ILoggerExtensions.cs
public static void Error (this Microsoft.Extensions.Logging.ILogger logger, Orleans.ErrorCode logCode, string message, Exception exception = default);
static member Error : Microsoft.Extensions.Logging.ILogger * Orleans.ErrorCode * string * Exception -> unit
<Extension()>
Public Sub Error (logger As ILogger, logCode As ErrorCode, message As String, Optional exception As Exception = Nothing)
Parameters
- logger
- ILogger
- logCode
- ErrorCode
- message
- String
- exception
- Exception
Applies to
Error(ILogger, Int32, String, Exception)
- Source:
- ILoggerExtensions.cs
Writes a log entry at the Error level
public static void Error (this Microsoft.Extensions.Logging.ILogger logger, int logCode, string message, Exception exception = default);
static member Error : Microsoft.Extensions.Logging.ILogger * int * string * Exception -> unit
<Extension()>
Public Sub Error (logger As ILogger, logCode As Integer, message As String, Optional exception As Exception = Nothing)
Parameters
- logger
- ILogger
The logger
- logCode
- Int32
The log code associated with this message.
- message
- String
The error message to log.
- exception
- Exception
An exception related to the error, if any.