Method LogToFile
LogToFile(object?, string?)
Logs message to the specified file or to default application log file.
public static void LogToFile(object? obj = null, string? filename = null)
Parameters
obj
objectObject to log.
filename
stringLog file path. LogFilePath is used when this parameter is
null
.