1\change Logger, support change loglevel dynamically
2\add more test cases.