19declare(strict_types=1);
37 throw new \InvalidArgumentException(
38 "Expected a path to the logfile, if logging is enabled."
42 $this->path_to_logfile = $this->
normalizePath($path_to_logfile);
51 $p = preg_replace(
"/\\\\/",
"/", $p);
52 return preg_replace(
"%/+$%",
"", $p);
string $path_to_errorlogfiles
normalizePath(?string $p)
__construct(bool $enabled, ?string $path_to_logfile, ?string $errorlog_dir)
A configuration for the setup.