add a fallback logger(to make unit-test easier)