The wsRecord input of the LogRecord function block is of the type WSTRING (wide string). To build the log string, you must first add the Standard64 library to your application and use wide string functions.
This figure shows the creation of a sample WSTRING that includes a variable value: