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

Function ap_new_log_config

server/config.c:2123–2138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2121}
2122
2123AP_DECLARE(struct ap_logconf *) ap_new_log_config(apr_pool_t *p,
2124 const struct ap_logconf *old)
2125{
2126 struct ap_logconf *l = apr_pcalloc(p, sizeof(struct ap_logconf));
2127 if (old) {
2128 l->level = old->level;
2129 if (old->module_levels) {
2130 l->module_levels =
2131 apr_pmemdup(p, old->module_levels, conf_vector_length);
2132 }
2133 }
2134 else {
2135 l->level = APLOG_UNSET;
2136 }
2137 return l;
2138}
2139
2140AP_DECLARE(void) ap_merge_log_config(const struct ap_logconf *old_conf,
2141 struct ap_logconf *new_conf)

Callers 2

merge_core_dir_configsFunction · 0.85
set_loglevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected