Allow to customize the formatter

A user-friendly way to customize the formatter for log events.