Edit

Share via


OrleansLoggerExtension.Trace Method

Definition

Overloads

Trace(ILogger, String)

Writes a log entry at the Verbose2 severity level. Verbose2 is lower than Verbose.

Trace(ILogger, ErrorCode, String)
Trace(ILogger, Int32, String)

Writes a log entry at the Trace logLevel

Trace(ILogger, String, Object[])

Writes a log entry at the Trace logLevel.

Trace(ILogger, ErrorCode, String, Object[])
Trace(ILogger, Int32, String, Object[])

Writes a log entry at the Trace logLevel

Trace(ILogger, String)

Source:
ILoggerExtensions.cs

Writes a log entry at the Verbose2 severity level. Verbose2 is lower than Verbose.

public static void Trace (this Microsoft.Extensions.Logging.ILogger logger, string message);
static member Trace : Microsoft.Extensions.Logging.ILogger * string -> unit
<Extension()>
Public Sub Trace (logger As ILogger, message As String)

Parameters

logger
ILogger

The logger

message
String

The log message.

Applies to

Trace(ILogger, ErrorCode, String)

Source:
ILoggerExtensions.cs
public static void Trace (this Microsoft.Extensions.Logging.ILogger logger, Orleans.ErrorCode logCode, string message);
static member Trace : Microsoft.Extensions.Logging.ILogger * Orleans.ErrorCode * string -> unit
<Extension()>
Public Sub Trace (logger As ILogger, logCode As ErrorCode, message As String)

Parameters

logger
ILogger
logCode
ErrorCode
message
String

Applies to

Trace(ILogger, Int32, String)

Source:
ILoggerExtensions.cs

Writes a log entry at the Trace logLevel

public static void Trace (this Microsoft.Extensions.Logging.ILogger logger, int logCode, string message);
static member Trace : Microsoft.Extensions.Logging.ILogger * int * string -> unit
<Extension()>
Public Sub Trace (logger As ILogger, logCode As Integer, message As String)

Parameters

logger
ILogger

The logger

logCode
Int32

The log code associated with this message.

message
String

The log message.

Applies to

Trace(ILogger, String, Object[])

Source:
ILoggerExtensions.cs

Writes a log entry at the Trace logLevel.

public static void Trace (this Microsoft.Extensions.Logging.ILogger logger, string format, params object[] args);
static member Trace : Microsoft.Extensions.Logging.ILogger * string * obj[] -> unit
<Extension()>
Public Sub Trace (logger As ILogger, format As String, ParamArray args As Object())

Parameters

logger
ILogger

The logger

format
String

Format string of the log message with named parameters Not always suitable for String.Format. See Microsoft.Extensions.Logging MessageTemplate section for more information. Suggest to use their pattern over this extension method

args
Object[]

Any arguments to the format string.

Applies to

Trace(ILogger, ErrorCode, String, Object[])

Source:
ILoggerExtensions.cs
public static void Trace (this Microsoft.Extensions.Logging.ILogger logger, Orleans.ErrorCode logCode, string format, params object[] args);
static member Trace : Microsoft.Extensions.Logging.ILogger * Orleans.ErrorCode * string * obj[] -> unit
<Extension()>
Public Sub Trace (logger As ILogger, logCode As ErrorCode, format As String, ParamArray args As Object())

Parameters

logger
ILogger
logCode
ErrorCode
format
String
args
Object[]

Applies to

Trace(ILogger, Int32, String, Object[])

Source:
ILoggerExtensions.cs

Writes a log entry at the Trace logLevel

public static void Trace (this Microsoft.Extensions.Logging.ILogger logger, int logCode, string format, params object[] args);
static member Trace : Microsoft.Extensions.Logging.ILogger * int * string * obj[] -> unit
<Extension()>
Public Sub Trace (logger As ILogger, logCode As Integer, format As String, ParamArray args As Object())

Parameters

logger
ILogger

The logger

logCode
Int32

The log code associated with this message.

format
String

Format string of the log message with named parameters Not always suitable for String.Format. See Microsoft.Extensions.Logging MessageTemplate section for more information. Suggest to use their pattern over this extension method

args
Object[]

Any arguments to the format string.

Applies to