Stub of console and log classes, including basic test of format.