error_log.module in Error Log 8
Same filename and directory in other branches
Error Log module.
File
error_log.moduleView source
<?php
/**
* @file
* Error Log module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\error_log\Form\ErrorLogConfigForm;
/**
* Implements hook_form_system_logging_settings_alter().
*/
function error_log_form_system_logging_settings_alter(array &$form) {
ErrorLogConfigForm::buildForm($form);
}
/**
* Implements hook_help().
*/
function error_log_help($route_name, RouteMatchInterface $route_match = NULL) {
switch ($route_name) {
case 'help.page.error_log':
return t('Error Log module sends log messages to the PHP error log, which, depending on the environment, could be the web server error log, stderr, syslog, or whatever the error_log PHP configuration directive is configured as. This logger will be disabled in the Drush environment, which has its own console log, unless the error_log configuration directive has been set. Because Drupal core also logs to error_log() in certain circumstances, some fatal errors may be logged twice, once by this logger, and once by Drupal core itself.');
}
}
Functions
Name | Description |
---|---|
error_log_form_system_logging_settings_alter | Implements hook_form_system_logging_settings_alter(). |
error_log_help | Implements hook_help(). |