{"record":{"id":"0e7e7ce6ba5d7ef1","repo":"phalcon/cphalcon","slug":"cannot-open-syslog-for-name-name-and-facility","errorCode":null,"errorMessage":"Cannot open syslog for name [{name}] and facility [{facility}]","messagePattern":"Cannot open syslog for name \\[(.+?)\\] and facility \\[(.+?)\\]","errorType":"exception","errorClass":"Phalcon\\Logger\\Adapter\\Exceptions\\SyslogOpenFailed","httpStatus":null,"severity":"error","filePath":"phalcon/Logger/Adapter/Syslog.zep","lineNumber":83,"sourceCode":"        }\n\n        return closelog();\n    }\n\n    /**\n     * Processes the message i.e. writes it to the syslog\n     *\n     * @throws SyslogOpenFailed\n     */\n    public function process(<Item> item) -> void\n    {\n        var level, message, result;\n\n        let message = this->getFormattedItem(item),\n            result  = this->openlog(this->name, this->option, this->facility);\n\n        if (!result) {\n            throw new SyslogOpenFailed(this->name, this->facility);\n        }\n\n        let this->opened = true,\n            level        = this->logLevelToSyslog(item->getLevel());\n\n        syslog(level, message);\n    }\n\n    /**\n     * Open connection to system logger\n     */\n    protected function openlog(string ident, int option, int facility) -> bool\n    {\n        return openlog(ident, option, facility);\n    }\n\n    /**\n     * Translates a Logger level to a Syslog level","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Logger/Adapter/Syslog.zep#L65-L101","documentation":"Thrown by the Syslog adapter::process when openlog() fails for the configured name and facility, so messages cannot be written to the system logger. Verify the syslog identity and facility values are valid for the platform.","triggerScenarios":"Thrown at phalcon/Logger/Adapter/Syslog.zep:83 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the facility value maps to a valid LOG_* constant","Check that syslog is available/permitted in the environment (containers often lack it)"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","contentChangedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}