Cannot write log file

Asked by Crian Shields

I'm trying to get Sikulix to write a log to a .txt file.
I've read up on the various other questions about this, but am still having problems.

Currently I have:
Debug.on(3)
Settings.ActionLogs = True
Settings.UserLogs = True
Settings.InfoLogs = True
Settings.LogTime = True
Debug.setLogFile("D:\Sikulix\aaUITest.txt")
Debug.setUserLogFile("D:\Sikulix\aaUITest.txt")

I've tried it with various file paths, Debug.on(1) instead of 3, and only having one of the log files there - combinations of those also.

No matter what I do, I always get an error:
[Error] Logfile D:\SikulixaUITest.txt not accessible - check given path

Any ideas on what I am doing wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
Last query:
Last reply:
Revision history for this message
Best masuo (masuo-ohara) said :
#1

change separater "\" to "\\\\"

"D:\\\\Sikulix\\\\aaUITest.txt"
"D:\\\\Sikulix\\\\aaUITest.txt"

Revision history for this message
Crian Shields (c-shields) said :
#2

Thanks masuo, that solved my question.