use mini-logger and error-formater
Merge pull request #365 from cnpm/logger

use mini-logger and error-formater