Provide logging helpers for structured logging
Parse log level from text representation to level number
Parse log level from text representation to level number
# Parse lower case log level
parse_log_level "info"
# Parse upper case log level
parse_log_level "ERROR"
Log output on a given level, checks if $LOG_LEVEL, if not set defaults to INFO
# Log a message on info level
log "$LOG_INFO" "this is a info message"
log "LOG_DEBUG" "i am only visible when \$LOG_LEVEL is debug"