add file handler for logging

Change-Id: I06b15746917a5105202ac7eb055d0c783893a027
Reviewed-on: http://review.couchbase.org/27466
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>