add color and shorter the err.log