DeploynautLogFile::__construct PHP Method

__construct() public method

public __construct ( string $logFile, string | null $basePath = null )
$logFile string The log filename
$basePath string | null Base path of where logs reside. Defaults to DEPLOYNAUT_LOG_PATH
    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();
            }
        }
    }