-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support logging using robot.api.logger
and logging
APIs
#26
Comments
I am looking for this 'feature' too. It seems very strange not to support Robots own logging in a Robot server. But this didn't work. No error, but also no output. I tried some other variations but no luck. |
For anyone else coming here: I solved it with this bit of code in my remote library: from robot.api import logger def remote_log_message(message,level,html=False): logger.write = remote_log_message This works because most Robot libraries import logger from robot.api - where we replace the definition of write. |
@VernonCrabtree Thank you, it's really a easy and best solution. |
Yep, official support for |
robot.api.logger
and logging
APIs
@VernonCrabtree : works like a charm. Nice workaround. |
It would be a nice feature to have if you could have a library that uses the robot.api.logger to log messages to just work when used in a remote server using the PythonRemoteServer.
The text was updated successfully, but these errors were encountered: