Record and make console messages inspectable