Add log/ directory to the source tree.

By default, logs are written to this directory. The .gitignore file
is needed in order to make sure log/ and only the directory itself
is tracked.