This procedure enables to save the received or sent data as hexadecimal character into log file that is defined by FileNameparameter. The files are saved to Trace directory of an application. Note: FileName can also contain directory names, e.g. "subdir1/mylog.txt" or "../anotherdir/mylog.txt".