Lines Matching refs:mls

1203     multi_log_state *mls = ap_get_module_config(r->server->module_config,
1217 if (mls->config_logs->nelts) {
1218 clsarray = (config_log_state *) mls->config_logs->elts;
1219 for (i = 0; i < mls->config_logs->nelts; ++i) {
1222 config_log_transaction(r, cls, mls->default_format);
1226 if (mls->server_config_logs) {
1227 clsarray = (config_log_state *) mls->server_config_logs->elts;
1228 for (i = 0; i < mls->server_config_logs->nelts; ++i) {
1231 if (cls->inherit || !mls->config_logs->nelts) {
1232 config_log_transaction(r, cls, mls->default_format);
1247 multi_log_state *mls;
1249 mls = (multi_log_state *) apr_palloc(p, sizeof(multi_log_state));
1250 mls->config_logs = apr_array_make(p, 1, sizeof(config_log_state));
1251 mls->default_format_string = NULL;
1252 mls->default_format = NULL;
1253 mls->server_config_logs = NULL;
1254 mls->formats = apr_table_make(p, 4);
1255 apr_table_setn(mls->formats, "CLF", DEFAULT_LOG_FORMAT);
1257 return mls;
1288 multi_log_state *mls = ap_get_module_config(cmd->server->module_config,
1299 apr_table_setn(mls->formats, name, fmt);
1303 mls->default_format_string = fmt;
1304 mls->default_format = parse_log_string(cmd->pool, fmt, &err_string);
1314 multi_log_state *mls = ap_get_module_config(cmd->server->module_config,
1318 cls = (config_log_state *) apr_array_push(mls->config_logs);
1360 multi_log_state *mls = ap_get_module_config(cmd->server->module_config,
1377 clsarray = (config_log_state*)mls->config_logs->elts;
1378 cls = &clsarray[mls->config_logs->nelts-1];
1442 multi_log_state *mls = ap_get_module_config(s->module_config,
1448 if (mls->default_format_string) {
1449 format = apr_table_get(mls->formats, mls->default_format_string);
1451 mls->default_format = parse_log_string(p, format, &dummy);
1455 if (!mls->default_format) {
1456 mls->default_format = parse_log_string(p, DEFAULT_LOG_FORMAT, &dummy);
1459 if (mls->config_logs->nelts) {
1460 clsarray = (config_log_state *) mls->config_logs->elts;
1461 for (i = 0; i < mls->config_logs->nelts; ++i) {
1465 format = apr_table_get(mls->formats, cls->format_string);
1471 if (!open_config_log(s, p, cls, mls->default_format)) {
1477 else if (mls->server_config_logs) {
1478 clsarray = (config_log_state *) mls->server_config_logs->elts;
1479 for (i = 0; i < mls->server_config_logs->nelts; ++i) {
1483 format = apr_table_get(mls->formats, cls->format_string);
1489 if (!open_config_log(s, p, cls, mls->default_format)) {
1503 multi_log_state *mls;
1513 mls = ap_get_module_config(s->module_config, &log_config_module);
1515 if (mls->config_logs->nelts) {
1516 log_list = mls->config_logs;
1518 else if (mls->server_config_logs) {
1519 log_list = mls->server_config_logs;
1887 multi_log_state *mls = ap_get_module_config(s->module_config,
1890 * We don't need to check mls->server_config_logs because it just
1891 * points to the parent server's mls->config_logs.
1893 apr_array_header_t *log_list = mls->config_logs;