Refined the console and log classes