Lines Matching refs:cls
1124 static int config_log_transaction(request_rec *r, config_log_state *cls,
1137 if (cls->fname == NULL) {
1145 if (cls->condition_var != NULL) {
1146 envar = cls->condition_var;
1158 else if (cls->condition_expr != NULL) {
1160 int rc = ap_expr_exec(r, cls->condition_expr, &err);
1168 format = cls->format ? cls->format : default_format;
1194 rv = log_writer(r, cls->log_writer, strs, strl, format->nelts, len);
1197 cls->fname);
1220 config_log_state *cls = &clsarray[i];
1222 config_log_transaction(r, cls, mls->default_format);
1229 config_log_state *cls = &clsarray[i];
1231 if (cls->inherit || !mls->config_logs->nelts) {
1232 config_log_transaction(r, cls, mls->default_format);
1316 config_log_state *cls;
1318 cls = (config_log_state *) apr_array_push(mls->config_logs);
1319 cls->condition_var = NULL;
1320 cls->condition_expr = NULL;
1327 cls->condition_var = apr_pstrdup(cmd->pool, &envclause[4]);
1333 cls->condition_expr = ap_expr_parse_cmd(cmd, &envclause[5],
1344 cls->fname = fn;
1345 cls->format_string = fmt;
1346 cls->directive = cmd->directive;
1348 cls->format = NULL;
1351 cls->format = parse_log_string(cmd->pool, fmt, &err_string);
1353 cls->log_writer = NULL;
1363 config_log_state *cls;
1378 cls = &clsarray[mls->config_logs->nelts-1];
1379 cls->inherit = 1;
1421 config_log_state *cls,
1424 if (cls->log_writer != NULL) {
1425 return cls; /* virtual config shared w/main server */
1428 if (cls->fname == NULL) {
1429 return cls; /* Leave it NULL to decline. */
1432 cls->log_writer = log_writer_init(p, s, cls->fname);
1433 if (cls->log_writer == NULL)
1436 return cls;
1462 config_log_state *cls = &clsarray[i];
1464 if (cls->format_string) {
1465 format = apr_table_get(mls->formats, cls->format_string);
1467 cls->format = parse_log_string(p, format, &dummy);
1471 if (!open_config_log(s, p, cls, mls->default_format)) {
1480 config_log_state *cls = &clsarray[i];
1482 if (cls->format_string) {
1483 format = apr_table_get(mls->formats, cls->format_string);
1485 cls->format = parse_log_string(p, format, &dummy);
1489 if (!open_config_log(s, p, cls, mls->default_format)) {
1857 static int check_log_dir(apr_pool_t *p, server_rec *s, config_log_state *cls)
1859 if (!cls->fname || cls->fname[0] == '|' || !cls->directive) {
1863 char *abs = ap_server_root_relative(p, cls->fname);
1866 const ap_directive_t *directive = cls->directive;
1868 cls->directive = NULL; /* Don't check this config_log_state again */
1875 "defined at %s:%d", dir, cls->fname,