extending log and color log to text