Writing log messages to a log file
**** this is a follow up of
https:/
-------
I want to copy all the log file into the notepad. After every line it should give the proper message like "the corresponding image is clicked ". But for me notepad is getting opened. But nothing is copied into that. Please help me..Below is my code.
def log(typ, msg):
if loglevel >= 0 and typ == 0:
print "[myinfo]", msg
elif loglevel >= 1 and typ == 1:
x=msg
elif loglevel >= 2 and typ == 2:
print "[myerror]", msg
loglevel = 2
file =open("
log(0, "script started")
rightClick(
click("Manage.png")
click("
doubleClick(
rightClick(
def driver():
click(
click(
sik = ("DriverVersio.
m = find(sik)
m.highlight(3)
print m.text()
click(
driver()
Thanks
Balakrishnan.A.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask balakrishnan for more information if necessary.