Logger(String, Object, Object, Object, LogType, Int32)

Logs the text representation of the specified objects using the specified format information.

Declaration
public static void Logger(string format, object arg0, object arg1, object arg2, LogType logType, int logLevel)
Example
var dt = new DateTime(1, 1, 1, 9, 52, 45);

engine.Logger("At {0:t}, the temperature is {1}°C and {2}.", dt, 17.1, "slightly overcast", LogType.None, 2);
Result
None|2|ID0|Logger_3_Arg_Test|At 9:52 AM, the temperature is 17.1°C and slightly overcast.
Type
Name
Description

format

A composite format string.

arg0

The first object to write using the format parameter.

arg1

The second object to write using the format parameter.

arg2

The third object to write using the format parameter.

logType

Specifies the log type.

logLevel

Specifies the log level.

Last updated