Log to /dev/null by default, switch to a file only if instructed.
Record samples and ancestral distributions differently.