merged monolog_handler into messages_handler.