Changing logging behaviour to make console logging possible