add log message type to event formatter

- add event.GetAppId() helper
- factor out UUID.FormattedString
- add NewLogMessage helper

[#75365570]

Signed-off-by: Johannes Petzold <jpetzold@pivotal.io>