log error with red color text