minor refac
Nasty hack to detect if ConsoleLogger is running inside a real console