Add log script, and use it in README example.