<!-- Maximum number of log files to keep before wrapping -->
<!-- If this parameter is enabled, the log filenames will not include a date stamp -->
<!-- <param name="maximum-rotate" value="32"/> -->
- <!-- Uncomment to prefix all log lines by the session's uuid -->
- <!-- <param name="uuid" value="true" /> -->
+ <!-- Prefix all log lines by the session's uuid -->
+ <param name="uuid" value="true" />
</settings>
<mappings>
<!--
<param name="facility" value="user"/>
<param name="ident" value="freeswitch"/>
<param name="loglevel" value="warning"/>
- <!-- Uncomment the following line to log uuids in syslogs (when applicable) -->
- <!-- <param name="uuid" value="true"/> -->
+ <!-- log uuids in syslogs -->
+ <param name="uuid" value="true"/>
</settings>
</configuration>
<!-- Maximum number of log files to keep before wrapping -->
<!-- If this parameter is enabled, the log filenames will not include a date stamp -->
<!-- <param name="maximum-rotate" value="32"/> -->
- <!-- Uncomment to prefix all log lines by the session's uuid -->
- <!-- <param name="uuid" value="true" /> -->
+ <!-- Prefix all log lines by the session's uuid -->
+ <param name="uuid" value="true" />
</settings>
<mappings>
<!--
new_profile->name = switch_core_strdup(module_pool, switch_str_nil(name));
new_profile->suffix = 1;
+ new_profile->log_uuid = SWITCH_TRUE;
if ((settings = switch_xml_child(xml, "settings"))) {
for (param = switch_xml_child(settings, "param"); param; param = param->next) {
if (new_profile->max_rot == 0) {
new_profile->max_rot = MAX_ROT;
}
- } else if (!strcmp(var, "uuid") && switch_true(val)) {
- new_profile->log_uuid = SWITCH_TRUE;
+ } else if (!strcmp(var, "uuid")) {
+ new_profile->log_uuid = switch_true(val);
}
}
}
<param name="facility" value="user"/>
<param name="ident" value="freeswitch"/>
<param name="loglevel" value="warning"/>
- <!-- Uncomment the following line to log uuids in syslogs (when applicable) -->
- <!-- <param name="uuid" value="true"/> -->
+ <!-- log uuids in syslogs -->
+ <param name="uuid" value="true"/>
</settings>
</configuration>
/* default facility */
globals.facility = DEFAULT_FACILITY;
+ globals.log_uuid = SWITCH_TRUE;
if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);