Switch ddLogLevel to extern