Add serialization of log messages (GH #246).

This updates the Logger role and is supposed to fix #246.
Please review.

Regards
              Racke