MCPcopy Create free account
hub / github.com/apache/httpd / ap_parse_log_level

Function ap_parse_log_level

server/log.c:1989–2006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1987}
1988
1989AP_DECLARE(const char *) ap_parse_log_level(const char *str, int *val)
1990{
1991 const char *err = "Log level keyword must be one of emerg/alert/crit/error/"
1992 "warn/notice/info/debug/trace1/.../trace8";
1993 int i = 0;
1994
1995 if (str == NULL)
1996 return err;
1997
1998 while (priorities[i].t_name != NULL) {
1999 if (!strcasecmp(str, priorities[i].t_name)) {
2000 *val = priorities[i].t_val;
2001 return NULL;
2002 }
2003 i++;
2004 }
2005 return err;
2006}
2007
2008AP_IMPLEMENT_HOOK_VOID(error_log,
2009 (const ap_errorlog_info *info, const char *errstr),

Callers 2

set_loglevelFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected