#!/bin/bash
workspace=$(cd `dirname $0`/.; pwd)
cd $workspace
function _log_error() {
echo -e "\033[31m[ERROR]\033[0m $@"
}
function _log_info() {
echo -e "\033[32m[INFO]\033[0m $@"
}
function _log_warn() {
echo -e "\033[33m[WRIN]\033[0m $@"
}
标签:function,shell,log,echo,033,日志,0m From: https://www.cnblogs.com/outsrkem/p/17350565.html