Makes debug logging work on the console.