Redirects the robot.api.logger to python logging if robot is not running. Issue #1860