log: categorize logging and color log messages