added dynamic log color chenge