Allow log level selection at runtime, fix reporting issue