Class for building notifications and logging them.