e3377c8aeb74240fe7cc10bf1d89ba7fa62fff98
[yaffs-website] / web / core / modules / syslog / syslog.install
1 <?php
2
3 /**
4  * @file
5  * Install, update and uninstall functions for the syslog module.
6  */
7
8 /**
9  * Implements hook_install().
10  */
11 function syslog_install() {
12   // The default facility setting depends on the operating system, so it needs
13   // to be set dynamically during installation.
14   \Drupal::configFactory()->getEditable('syslog.settings')->set('facility', defined('LOG_LOCAL0') ? LOG_LOCAL0 : LOG_USER)->save();
15 }