Fixed logger namespace lookup error when running on cli mode