pmd/.ci/inc/logger.inc
2020-11-13 14:44:39 +01:00

30 lines
494 B
PHP

COL_GREEN="\e[32m"
COL_RED="\e[31m"
COL_RESET="\e[0m"
COL_YELLOW="\e[33;1m"
function log_error() {
echo -e "${COL_RED}[ERROR ] $*${COL_RESET}"
}
function log_info() {
echo -e "${COL_YELLOW}[INFO ] $*${COL_RESET}"
}
function log_success() {
echo -e "${COL_GREEN}[SUCCESS] $*${COL_RESET}"
}
function log_debug() {
#true
echo -e "[DEBUG ] $*"
}
function log_group_start() {
echo "::group::$*"
log_info $*
}
function log_group_end() {
echo "::endgroup::"
}