{"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":"Error \"Cannot open syslog for name [{name}] and facility [{facility}]\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Logger/Adapter/Syslog.zep:83 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}