Improve logging for v8