| 190 | #endif |
| 191 | |
| 192 | AP_DECLARE(int) ap_get_request_module_loglevel(const request_rec *r, int module_index) |
| 193 | { |
| 194 | const struct ap_logconf *l = r->log ? r->log : |
| 195 | r->connection->log ? r->connection->log : |
| 196 | &r->server->log; |
| 197 | if (module_index < 0 || l->module_levels == NULL || |
| 198 | l->module_levels[module_index] < 0) |
| 199 | { |
| 200 | return l->level; |
| 201 | } |
| 202 | |
| 203 | return l->module_levels[module_index]; |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | * Generic accessors for other modules to set at their own module-specific |