You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support logging using robot.api.logger and logging APIs #26
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.
I am looking for this 'feature' too. It seems very strange not to support Robots own logging in a Robot server.
I know python "print" output is picked up.
But, as an example, I run the OperatingSystem Copy File keyword, but the INFO message gets lost on the remote system somewhere. This needs to be reported back to the output of the calling script.
I tried registering my own logger in my remote library as follows:
class RFremoteLogger(Logger): # Inherit from robot.output.logger.Logger
def message(self, record):
print record
. . .
if name == 'main':
from robotremoteserver import RobotRemoteServer
LOGGER.register_logger(RFremoteLogger)
RobotRemoteServer(MyRemoteLib(), *sys.argv[1:])
But this didn't work. No error, but also no output. I tried some other variations but no luck.
Any suggestions how to get the output?
changed the title [-]Support robot.api.logger when running remote keywords[/-][+]Support logging using `robot.api.logger` and `logging` APIs[/+]on Jan 9, 2017
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.