* このページを編集する際は,[[編集に関する方針>編集方針]]に従ってください. [#z1b18a3b]

* 概要 [#j7980619]
- [[Jabberd14-1.6.0/jabberd/log.c]]にて定義

 * check if the specified debugging zone has been selected

* 引数 [#p3f21dd6]

 * @param zone the zone where the logging message comes from
 * @return 1 if it should be logged, 0 if not

* 実装 [#v0d545ab]

static inline int _debug_log_zonefilter(char *zone) {
    char *pos, c = '\0';
    if(zone != NULL && debug__zones != NULL)
    {
	pos = strchr(zone,'.');
        if(pos != NULL)
        {
            c = *pos;
            *pos = '\0'; /* chop */
        }
        if(xhash_get(debug__zones,zone) == NULL)
            return 0;
        if(pos != NULL)
            *pos = c; /* restore */
    }
    return 1;
}


* 呼出元 [#rfeda7ab]
-[[Jabberd14-1.6.0/jabberd/log.c/log_debug2]]

#related