Handle global log levels (fixes #6033)