syslog.install 396 Bytes
Newer Older
1 2 3 4 5 6 7 8
<?php

/**
 * @file
 * Install, update and uninstall functions for the syslog module.
 */

/**
9
 * Implements hook_install().
10
 */
11 12 13
function syslog_install() {
  // The default facility setting depends on the operating system, so it needs
  // to be set dynamically during installation.
14
  \Drupal::config('syslog.settings')->set('facility', defined('LOG_LOCAL0') ? LOG_LOCAL0 : LOG_USER)->save();
15
}