API endpoint for adding a new log record.

Fixes #5