Edit

Share via


OrleansLoggerExtension.Error Method

Definition

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.

Applies to