Add a custom logger handler.