This prevents the programmer from accidentally adding LOG_START and LOG_END events to the log without actually starting the log. This also makes it easier to ensure that the LOG_START event always ends up first and the LOG_END event always ends up last in the log file. Bug: webrtc:8111 Change-Id: I4e6c9306f8559ff184b5185f8728409f8dcebfa0 Reviewed-on: https://webrtc-review.googlesource.com/34400 Reviewed-by: Elad Alon <eladalon@webrtc.org> Commit-Queue: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21486}