logging integration

Change-Id: I31c66c52ed3992b2905fcaa25338e30ef758b8b2
Reviewed-on: http://review.couchbase.org/44627
Reviewed-by: Yu Sui <ysui68@gmail.com>
Tested-by: Yu Sui <ysui68@gmail.com>