Hi,
there's no direct way to change `print()` using in RF keyword to write
to the console instead of the log file, but there are few things you
can do:
1. Use `robot.api.logger.console('Message')` as you apparently already
have done.
2. Use `print('Message', file=sys.__stdout__)`. RF intercepts
`sys.stdout` but leaves `sys.__stdout__` alone (as all well behaving
programs should).
3. Create a helper logger function that you can configure to log to
the console when needed. The helper could use either of the above
ways.
Cheers,
.peke
> --
> You received this message because you are subscribed to the Google Groups "robotframework-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
robotframework-u...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/robotframework-users/4d1ba6bd-eec9-4cf5-ad1b-2ca10d65c0a2n%40googlegroups.com.
--
Agile Tester/Developer/Consultant ::
http://eliga.fi
Lead Developer of Robot Framework ::
http://robotframework.org