public function setLogsDir(string $logsDir): void
    {
        if (!file_exists($logsDir) || !is_writable($logsDir)) {
            throw new LoggerException('Logs path does not exist or is not writable.');
        }
        $this->logsDir = rtrim($logsDir, '/') . '/';
    }
public function setLogsDir(string $logsDir): void
    {
        if (!file_exists($logsDir) || !is_writable($logsDir)) {
            throw new LoggerException('Logs path does not exist or is not writable.');
        }
        $this->logsDir = rtrim($logsDir, '/') . '/';
    }
public function setLogsDir ( string $ logsDir ) : void { if ( ! file_exists ( $ logsDir ) || ! is_writable ( $ logsDir ) ) { throw new LoggerException ( 'Logs path does not exist or is not writable.' ) ; } $ this -> logsDir = rtrim ( $ logsDir , '/' ) . '/' ; }
Sets path to directory containing log files.

@param string $logsDir
@throws LoggerException()
Sets path to directory containing log files .