For example, here is my simple script using log4bash.sh
#!/bin/bash
source log4bash.sh
log "COOL"
log_warning "HELP!"
log_info "AWESOME"
log_success "WEWEWEWE"
log_error "ERROR!"
and the output is -
[2016-12-02 22:27:20 UTC] [INFO] COOL
[2016-12-02 22:27:20 UTC] [WARNING] HELP!
[2016-12-02 22:27:20 UTC] [INFO] AWESOME
[2016-12-02 22:27:20 UTC] [SUCCESS] WEWEWEWE
[2016-12-02 22:27:20 UTC] [ERROR] ERROR!
working fine, but no colo(u)r.
Thanks in advance.
For example, here is my simple script using log4bash.sh
and the output is -
working fine, but no colo(u)r.
Thanks in advance.