function _filelog_get_conf in File Log 6.2
Same name and namespace in other branches
- 6 filelog.module \_filelog_get_conf()
- 7 filelog.module \_filelog_get_conf()
7 calls to _filelog_get_conf()
- filelog_cron in ./
filelog.module - Implementation of hook_cron().
- filelog_directory in ./
filelog.module - filelog_path in ./
filelog.module - filelog_requirements in ./
filelog.install - Implementation of hook_requirements().
- filelog_watchdog in ./
filelog.module - Implementation of hook_watchdog().
File
- ./
filelog.module, line 279 - Writes logging messages into files.
Code
function _filelog_get_conf() {
global $conf;
static $f;
if (is_null($f)) {
$f = !array_key_exists('filelog', $conf) || !is_array($conf['filelog']) ? array() : $conf['filelog'];
$f += array(
'dir' => FALSE,
'log_level' => WATCHDOG_DEBUG,
'type_levels' => array(),
'buffer' => TRUE,
'site_in_name' => FALSE,
'type_in_name' => FALSE,
'severity_in_name' => FALSE,
'group_severity_in_name' => FALSE,
'daily_files' => FALSE,
'delete_files' => FALSE,
'field_separator' => '|',
'field_prefix' => '',
'field_suffix' => '',
'wrap_message' => FALSE,
'log_base_url' => FALSE,
'log_username' => FALSE,
'date_format' => FALSE,
'decode_severity' => FALSE,
'skip_strip_tags' => FALSE,
'chmod' => FALSE,
'with_ui' => FALSE,
);
//legacy suuport fro DEPRECATED grouped_severity_in_name directive
if (array_key_exists('grouped_severity_in_name', $f)) {
$f['group_severity_in_name'] = $f['grouped_severity_in_name'];
unset($f['grouped_severity_in_name']);
}
}
return $f;
}