Pluggable logging for effects and snapshots