public function __construct($logFile, $basePath = null)
{
$this->logFile = $logFile;
if ($basePath !== null) {
$this->basePath = $basePath;
} else {
if (defined('DEPLOYNAUT_LOG_PATH')) {
$this->basePath = DEPLOYNAUT_LOG_PATH;
} else {
$this->basePath = sys_get_temp_dir();
}
}
}