extends abstract class Phalcon\Logger\Adapter
implements Phalcon\Logger\AdapterInterface
Source on GitHub
Sends logs to the system logger
$logger = new \Phalcon\Logger\Adapter\Syslog("ident", array(
'option' => LOG_NDELAY,
'facility' => LOG_MAIL
));
$logger->log("This is a message");
$logger->log(\Phalcon\Logger::ERROR, "This is an error");
$logger->error("This is another error");
Methods
public __construct (string $name, [array $options])
Phalcon\Logger\Adapter\Syslog c