Use '/var/log/icingaweb2/icingaweb2.log' as default path when logging to file

This commit is contained in:
Eric Lippmann 2014-12-29 16:02:40 +01:00
parent 5bc2144b18
commit f0fe6246ac
1 changed files with 1 additions and 11 deletions

View File

@ -106,7 +106,7 @@ class LoggingConfigForm extends Form
'required' => true, 'required' => true,
'label' => t('File path'), 'label' => t('File path'),
'description' => t('The full path to the log file to write messages to.'), '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()) 'validators' => array(new WritablePathValidator())
) )
); );
@ -114,14 +114,4 @@ class LoggingConfigForm extends Form
return $this; return $this;
} }
/**
* Return the default logging directory for type 'file'
*
* @return string
*/
protected function getDefaultLogDir()
{
return realpath(Icinga::app()->getApplicationDir('../var/log/icingaweb.log'));
}
} }