[bug 827355] Fix stdout printing for search commands

This also moves the FakeLogger to utils.

This is partially cosmetic, but also reduces some of the spam from using the commands.

r?