1 syslog.module syslog_logging_settings_submit($form, &$form_state)

Form submission handler for system_logging_settings().

See also

syslog_form_system_logging_settings_alter()

File

core/modules/syslog/syslog.module, line 58
Redirects logging messages to syslog.

Code

function syslog_logging_settings_submit($form, &$form_state) {
  config('system.core')
    ->set('log_identity', $form_state['values']['syslog_identity'])
    ->set('log_facility', $form_state['values']['syslog_facility'])
    ->set('log_format', $form_state['values']['syslog_format'])
    ->save();
}