Dispatch flush event after writing log records.
Rename flush event to log, closes #14.