Given a device instance, you can change the log settings via the connectionmgr instance.
# dev is a Device instance from a testbed
# now execute a command and you will not see the output on the console
resp = dev.execute('show version')
# you can print the response
Thanks Jeremy! That did the trick. However when I use dev.connect(log_stdout=False) then the output is not logged to a file. A few follow up questions: