You are here

function monolog_handler_load in Monolog 7

Same name and namespace in other branches
  1. 6 monolog.crud.inc \monolog_handler_load()

Loads a logging profile's handler configuration.

Parameters

int $handler_name: The machine name of the handler configuration.

string $profile_name: The machine name of logging profile.

Return value

array|FALSE The configuration options, FALSE if the profile or handler doesn't exist.

See also

monolog_profile_load()

Related topics

File

./monolog.crud.inc, line 122
CRUD functions for logging profile configurations.

Code

function monolog_handler_load($handler_name, $profile_name) {
  $profile = monolog_profile_load($profile_name);
  if ($profile && isset($profile->options['handlers'][$handler_name])) {
    return $profile->options['handlers'][$handler_name];
  }
  return FALSE;
}