Edit

Share via


OrleansLoggingUtils.FormatLogMessageToLegacyStyle Method

Definition

The method to call during logging to format the log info into a string, which is orleans legacy logging style

public static string FormatLogMessageToLegacyStyle (DateTime timestamp, Orleans.Runtime.Severity severity, Orleans.Runtime.LoggerType loggerType, string caller, string message, System.Net.IPEndPoint myIPEndPoint, Exception exception, int errorCode, bool includeStackTrace);
static member FormatLogMessageToLegacyStyle : DateTime * Orleans.Runtime.Severity * Orleans.Runtime.LoggerType * string * string * System.Net.IPEndPoint * Exception * int * bool -> string
Public Shared Function FormatLogMessageToLegacyStyle (timestamp As DateTime, severity As Severity, loggerType As LoggerType, caller As String, message As String, myIPEndPoint As IPEndPoint, exception As Exception, errorCode As Integer, includeStackTrace As Boolean) As String

Parameters

timestamp
DateTime

Timestamp of the log message.

severity
Severity

The severity of the message being traced.

loggerType
LoggerType

The type of logger the message is being traced through.

caller
String

The name of the logger tracing the message.

message
String

The message to log.

myIPEndPoint
IPEndPoint

The IPEndPoint of the Orleans client/server if known. May be null.

exception
Exception

The exception to log. May be null.

errorCode
Int32

Numeric event code for this log entry. May be zero, meaning 'Unspecified'.

includeStackTrace
Boolean

determine include stack trace or not

Returns

Applies to