Using a custom type for reporting log and event messages