Added a formatter option for the monolog logger

Monolog handlers support a custom formatter besides of the traditional LineFormatter. This PR adds this functionality.