Cannot write log file

Asked by Crian Shields on 2018-06-01

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
2018-06-01
Last query:
2018-06-01
Last reply:
2018-06-01
Best masuo (masuo-ohara) said : #1

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

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

Crian Shields (c-shields) said : #2

Thanks masuo, that solved my question.