phalcon/cphalcon · error · Phalcon\Logger\Adapter\Exceptions\SyslogOpenFailed

Cannot open syslog for name [{name}] and facility [{facility

Error message

Cannot open syslog for name [{name}] and facility [{facility}]

What it means

Error "Cannot open syslog for name [{name}] and facility [{facility}]" thrown in phalcon/cphalcon.

Source

Thrown at phalcon/Logger/Adapter/Syslog.zep:83

        }

        return closelog();
    }

    /**
     * Processes the message i.e. writes it to the syslog
     *
     * @throws SyslogOpenFailed
     */
    public function process(<Item> item) -> void
    {
        var level, message, result;

        let message = this->getFormattedItem(item),
            result  = this->openlog(this->name, this->option, this->facility);

        if (!result) {
            throw new SyslogOpenFailed(this->name, this->facility);
        }

        let this->opened = true,
            level        = this->logLevelToSyslog(item->getLevel());

        syslog(level, message);
    }

    /**
     * Open connection to system logger
     */
    protected function openlog(string ident, int option, int facility) -> bool
    {
        return openlog(ident, option, facility);
    }

    /**
     * Translates a Logger level to a Syslog level

View on GitHub (pinned to b7419de9cd)

When it happens

Trigger: Thrown at phalcon/Logger/Adapter/Syslog.zep:83 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21). Data as JSON: /api/errors/0e7e7ce6ba5d7ef1. Report an issue: GitHub.