src/includes/classes/Core/Utils/Debugging.php
protected function prepareLogsDir()
    {
        if (is_dir($this->logs_dir)) {
            if (!is_writable($this->logs_dir)) {
                throw new Exception(sprintf('Logs directory not writable: `%1$s`.', $this->logs_dir));
            } // Always check to be sure the logs directory is still writable.
            return; // Otherwise; nothing to do here.
        }
        if (!mkdir($this->logs_dir, $this->App->Config->©fs_permissions['©transient_dirs'], true)) {
            throw new Exception(sprintf('Logs directory not writable: `%1$s`.', $this->logs_dir));
        } elseif (!$this->c::apacheHtaccessDeny($this->logs_dir)) {
            throw new Exception(sprintf('Unable to secure logs directory: `%1$s`.', $this->logs_dir));
        }
    }
protected function prepareLogsDir()
    {
        if (is_dir($this->logs_dir)) {
            if (!is_writable($this->logs_dir)) {
                throw new Exception(sprintf('Logs directory not writable: `%1$s`.', $this->logs_dir));
            } // Always check to be sure the logs directory is still writable.
            return; // Otherwise; nothing to do here.
        }
        if (!mkdir($this->logs_dir, $this->App->Config->©fs_permissions['©transient_dirs'], true)) {
            throw new Exception(sprintf('Logs directory not writable: `%1$s`.', $this->logs_dir));
        } elseif (!$this->c::apacheHtaccessDeny($this->logs_dir)) {
            throw new Exception(sprintf('Unable to secure logs directory: `%1$s`.', $this->logs_dir));
        }
    }
Prepares the logs directory.

@since 160522 Debugging utilities.