Use '/var/log/icingaweb2/icingaweb2.log' as default path when logging to file
This commit is contained in:
parent
5bc2144b18
commit
f0fe6246ac
|
@ -106,7 +106,7 @@ class LoggingConfigForm extends Form
|
|||
'required' => true,
|
||||
'label' => t('File path'),
|
||||
'description' => t('The full path to the log file to write messages to.'),
|
||||
'value' => $this->getDefaultLogDir(),
|
||||
'value' => '/var/log/icingaweb2/icingaweb2.log',
|
||||
'validators' => array(new WritablePathValidator())
|
||||
)
|
||||
);
|
||||
|
@ -114,14 +114,4 @@ class LoggingConfigForm extends Form
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the default logging directory for type 'file'
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function getDefaultLogDir()
|
||||
{
|
||||
return realpath(Icinga::app()->getApplicationDir('../var/log/icingaweb.log'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue