Add ability to log messages.
Add logging to docs.