You are here

function monolog_stream_handler_settings in Monolog 7

Same name in this branch
  1. 7 monolog.api.php \monolog_stream_handler_settings()
  2. 7 handlers/stream.inc \monolog_stream_handler_settings()
Same name and namespace in other branches
  1. 6 monolog.api.php \monolog_stream_handler_settings()
  2. 6 handlers/stream.inc \monolog_stream_handler_settings()

Example Monolog settings callback.

The forms add handler specific options to the handler settings pages.

Parameters

array $handler: The handler options set for profile the handler is attached to.

File

./monolog.api.php, line 128
Hooks provided by the Composer Manager module.

Code

function monolog_stream_handler_settings(&$form, &$form_state, array $handler) {
  $form['filepath'] = array(
    '#title' => 'Log file path',
    '#type' => 'textfield',
    '#default_value' => $handler['filepath'],
    '#description' => t('The path or URI that the log file will be written to.'),
  );
}