sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30993
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: Open => Answered
RaiMan proposed the following answer:
thanks for the finding:
of course the docs are wrong, sorry.
Since the callback is expected to be an instance method, the first parameter has to be a placeholder for the instance (usually one uses self).
hence it must read:
# a wrapper class is needed for the callback function (name it as you want)
class myLogger():
# a callback function (name it as you want)
# you might have more than one for specific handling of message groups
def callback(self, message):
print message
I will correct the docs.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.