Add serialization of log messages (GH #246).
Merge pull request #253 from racke/pr/log_message_serialization

Add serialization of log messages (GH #246).