resolve the first bug: After changeLoggerLevel, logger handler throw Error("Illegal invocation);
add a function to createDefaultLogHanlder.