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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to