loglevel has four types: info, warning, error, debug