support ANSI colors in logging class