Merge pull request #50 from duhenglucky/log

Add timeout support and log setting  for client