dock:: use logger, and dock/undock.

1. using logger instead of fmt.
2. dock and undock are almost done.