add formatter to be configurable

add the possibility to configure the formatter for the handler.
Merge pull request #1 from 25th-floor/formatter

add formatter to be configurable