parent
b2ab99fd71
commit
707f0435a2
|
@ -39,6 +39,7 @@ class LoggingConfigForm extends Form
|
||||||
'label' => $this->translate('Logging Type'),
|
'label' => $this->translate('Logging Type'),
|
||||||
'description' => $this->translate('The type of logging to utilize.'),
|
'description' => $this->translate('The type of logging to utilize.'),
|
||||||
'multiOptions' => array(
|
'multiOptions' => array(
|
||||||
|
'php' => $this->translate('Webserver Log', 'app.config.logging.type'),
|
||||||
'syslog' => 'Syslog',
|
'syslog' => 'Syslog',
|
||||||
'file' => $this->translate('File', 'app.config.logging.type'),
|
'file' => $this->translate('File', 'app.config.logging.type'),
|
||||||
'none' => $this->translate('None', 'app.config.logging.type')
|
'none' => $this->translate('None', 'app.config.logging.type')
|
||||||
|
@ -64,7 +65,7 @@ class LoggingConfigForm extends Form
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (false === isset($formData['logging_log']) || $formData['logging_log'] === 'syslog') {
|
if (false === isset($formData['logging_log']) || in_array($formData['logging_log'], array('syslog', 'php'))) {
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'text',
|
'text',
|
||||||
'logging_application',
|
'logging_application',
|
||||||
|
@ -72,7 +73,7 @@ class LoggingConfigForm extends Form
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'label' => $this->translate('Application Prefix'),
|
'label' => $this->translate('Application Prefix'),
|
||||||
'description' => $this->translate(
|
'description' => $this->translate(
|
||||||
'The name of the application by which to prefix syslog messages.'
|
'The name of the application by which to prefix log messages.'
|
||||||
),
|
),
|
||||||
'requirement' => $this->translate('The application prefix must not contain whitespace.'),
|
'requirement' => $this->translate('The application prefix must not contain whitespace.'),
|
||||||
'value' => 'icingaweb2',
|
'value' => 'icingaweb2',
|
||||||
|
|
Loading…
Reference in New Issue