function logGroup(logFn) {
	return function (level, msg) {
		if (shouldLog(level)) {
			logFn(msg);
		}
	};
}
@param {(msg?: string) => void} logFn log function
@returns {(level: LogLevel, msg?: string) => void} function that logs when log level is sufficient