Add function of logger to api/dockerclient.py