You are here

function monolog_logging_menu in Monolog 7

Same name and namespace in other branches
  1. 6 modules/monolog_logging/monolog_logging.module \monolog_logging_menu()

Implements hook_menu().

File

modules/monolog_logging/monolog_logging.module, line 14
Integrates Drupal's internal logging system with Monolog by routing watchdog messages to Monolog channels.

Code

function monolog_logging_menu() {
  $items = array();
  $items['admin/config/development/monolog/watchdog'] = array(
    'title' => 'Watchdog Settings',
    'description' => 'Configure watchdog type mappings and context settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'monolog_logging_watchdog_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'monolog_logging.admin.inc',
    'weight' => 10,
  );
  return $items;
}