add unit log and echo doc