Fix: improve compatibility with stdlib logger esp SetOutput()