protected function getLogDirectory()
{
if ($this->config->has('path.logs')) {
return $this->config->get('path.logs');
}
if ($this->config->has('path.storage')) {
$path = $this->config->get('path.storage') . '/logs';
if (is_dir($path)) {
return $path;
}
}
return null;
}