sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30998
Re: [Question #263462]: Redirecting the Sikuli Logger and the "setLogger: Jython init: we have problems" Error
Question #263462 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263462
Status: Answered => Open
aidma is still having a problem:
I'm glad I was able to help improve the docs :D!
Unfortunately, I still can't get Debug.setLogger(obj) to accept my
custom logger class. Instead I get the "[setLogger: Jython init: we have
problems%s] org.sikuli.scriptrunner.ScriptRunner" error:
>>> class myLogger():
... def callback(self, message):
... print "CUSTOM LOG"
... print message
...
>>> Debug.setLogger(myLogger())
[setLogger: Jython init: we have problems
%s] org.sikuli.scriptrunner.ScriptRunner
Also, you say that the callback is expected to be an instance method.
Would decorating callback functions as @classmethod or @staticmethod
cause errors?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.