Expose a way to create a new log message

There is no easy way to create an error message given the current API.
I am open to alternatives but this seemed to be one of the better ways.