function monolog_default_monolog_profiles in Monolog 6
Same name and namespace in other branches
- 7 monolog.monolog.inc \monolog_default_monolog_profiles()
Implements hook_default_monolog_profiles().
File
- ./
monolog.monolog.inc, line 98 - Monolog hook implementations.
Code
function monolog_default_monolog_profiles() {
$profiles = array();
$profile = new stdClass();
$profile->disabled = FALSE;
$profile->api_version = 1;
$profile->name = 'production';
$profile->options = array(
'label' => 'Production',
'handlers' => array(
'syslog' => array(
'handler' => 'syslog',
'label' => 'Syslog',
'ident' => 'drupal',
'level' => 200,
'bubble' => 1,
'weight' => -50,
),
),
);
$profiles[$profile->name] = $profile;
$profile = new stdClass();
$profile->disabled = FALSE;
$profile->api_version = 1;
$profile->name = 'development';
$profile->options = array(
'label' => 'Development',
'handlers' => array(
'stream' => array(
'handler' => 'stream',
'label' => 'Log file',
'filepath' => 'public://monolog/drupal.log',
'level' => 200,
'bubble' => 1,
'weight' => -50,
),
),
);
$profiles[$profile->name] = $profile;
return $profiles;
}