add a color handler for logger