Adding logger to the handlers.