Get console logging working