ILogService

This topic describes the properties and methods of the ILogService interface, which can be used for logging.

Trace

Writes the diagnostic message at the Trace level.

logFunc
A log function.

Trace

Writes the diagnostic message at the Trace level.

message
A string containing format items.
args
Arguments to format.

TraceException

Writes the diagnostic message and exception at the Trace level.

message
A string to be written.
exception
An exception to be logged.

TraceVariables

Writes the variable name and value at the Trace level.

name
The variable name.
value
The variable value.

TraceVariables

Writes the variable names and values at the Trace level.

names
The variable names to log.
values
The variable values to log.

Debug

Writes the diagnostic message at the Debug level.

logFunc
A log function.

Debug

Writes the diagnostic message at the Debug level.

message
A string containing format items.
args
Arguments to format.

DebugException

Writes the diagnostic message and exception at the Debug level.

message
A string to be written.
exception
An exception to be logged.

DebugVariables

Writes the variable name and value at the Debug level.

name
The variable name.
value
The variable value.

DebugVariables

Writes the variable names and values at the Debug level.

names
The variable names to log.
values
The variable values to log.

Info

Writes the diagnostic message at the Info level.

logFunc
A log function.

Info

Writes the diagnostic message at the Info level.

message
A string containing format items.
args
Arguments to format.

InfoException

Writes the diagnostic message and exception at the Info level.

message
A string to be written.
exception
An exception to be logged.

InfoVariables

Writes the variable name and value at the Info level.

name
The variable name.
value
The variable value.

InfoVariables

Writes the variable names and values at the Info level.

names
The variable names to log.
values
The variable values to log.

Warn

Writes the diagnostic message at the Warn level.

logFunc
A log function.

Warn

Writes the diagnostic message at the Warn level.

message
A string containing format items.
args
Arguments to format.

WarnException

Writes the diagnostic message and exception at the Warn level.

message
A string to be written.
exception
An exception to be logged.

WarnVariables

Writes the variable name and value at the Warn level.

name
The variable name.
value
The variable value.

WarnVariables

Writes the variable names and values at the Warn level.

names
The variable names to log.
values
The variable values to log.

Error

Writes the diagnostic message at the Error level.

logFunc
A log function.

Error

Writes the diagnostic message at the Error level.

message
A string containing format items.
args
Arguments to format.

ErrorException

Writes the diagnostic message and exception at the Error level.

message
A string to be written.
exception
An exception to be logged.

ErrorVariables

Writes the variable name and value at the Error level.

name
The variable name.
value
The variable value.

ErrorVariables

Writes the variable names and values at the Error level.

names
The variable names to log.
values
The variable values to log.

Fatal

Writes the diagnostic message at the Fatal level.

logFunc
A log function.

Fatal

Writes the diagnostic message at the Fatal level.

message
A string containing format items.
args
Arguments to format.

FatalException

Writes the diagnostic message and exception at the Fatal level.

message
A string to be written.
exception
An exception to be logged.

FatalVariables

Writes the variable name and value at the Fatal level.

name
The variable name.
value
The variable value.

FatalVariables

Writes the variable names and values at the Fatal level.

names
The variable names to log.
values
The variable values to log.