pmd/.travis/logger.sh

24 lines
383 B
Bash
Raw Normal View History

#!/bin/bash
COL_GREEN="\e[32m"
COL_RED="\e[31m"
COL_RESET="\e[0m"
COL_YELLOW="\e[33;1m"
function log_error() {
2019-11-09 20:20:33 +01:00
echo -e "${COL_RED}[ERROR ] $*${COL_RESET}"
}
function log_info() {
2019-11-09 20:20:33 +01:00
echo -e "${COL_YELLOW}[INFO ] $*${COL_RESET}"
}
function log_success() {
echo -e "${COL_GREEN}[SUCCESS] $*${COL_RESET}"
}
2019-11-09 20:20:33 +01:00
function log_debug() {
true
#echo -e "[DEBUG ] $*"
}