You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to robotframework-users
Is there a way to turn on redirect logging to console? by default, robot intercepts all logging and only testcase status showing up on console.
thanks, Sean
Pekka Klärck
unread,
May 16, 2016, 3:28:34 PM5/16/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sea...@gmail.com, robotframework-users
2016-05-13 17:23 GMT+03:00 Sean Wu <sea...@gmail.com>:
> Is there a way to turn on redirect logging to console? by default, robot
> intercepts all logging and only testcase status showing up on console.
There's no built-in way, but you can create a listener with
`log_message` method and redirect all messages where you want. If only
a certain keyword needs to log to the console, you can use
`sys.__stdout__.write` or `robot.api.logger.console` methods.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to robotframework-users, sea...@gmail.com
Hi peke,
I was not aware of Listener. Will give it a try.
I do have a wrapper logging method for the keyword implementation. Is that a way to detect whether it's being called by RobotFramework so that it can have extra logging to console enabled?