Use an opaque type with a module for accessors rather than a record

I didn't want the lager_log_message record being used across application
boundaries, this will insulate other applications from any changes to
the message type's internal structure.
8 files changed