Abstract class Phalcon\Logger
Phalcon\Logger is a component whose purpose is create logs using different backends via adapters, generating options, formats and filters also implementing transactions.
$logger = new Phalcon\Logger\Adapter\File("app/logs/test.log"); $logger->log("This is a message"); $logger->log("This is an error", Phalcon\Logger::ERROR); $logger->error("This is another error");
Constants
integer SPECIAL
integer CUSTOM
integer DEBUG
integer INFO
integer NOTICE
integer WARNING
integer ERROR
integer ALERT
integer CRITICAL
integer EMERGENCE
integer EMERGENCY
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Logger.html