Phalcon\Logger is a component whose purpose is create logs using different backends via adapters, generating options, formats and filters also implementing transactions.
<?php
$logger = new Phalcon\Logger\Adapter\File("app/logs/test.log");
$logger->log(Phalcon\Logger::INFO, "This is a message");
$logger->log(Phalcon\Logger::ERROR, "This is an error");
$logger->error("This is another error");
integer SPECIAL
integer CUSTOM
integer DEBUG
integer INFO
integer NOTICE
integer WARNING
integer ERROR
integer ALERT
integer CRITICAL
integer EMERGENCE
integer EMERGENCY
public static string getTypeString (integer $type)
Returns the string meaning of a logger constant