Simplify log color code