extends abstract class Phalcon\Logger\Adapter
implements Phalcon\Logger\AdapterInterface
Source on GitHub
Adapter to store logs in plain text files
$logger = new \Phalcon\Logger\Adapter\File("app/logs/test.log");
$logger->log("This is a message");
$logger->log(\Phalcon\Logger::ERROR, "This is an error");
$logger->error("This is another error");
$logger->close();
Methods
public getPath ()
File Path
public __construct (string $name, [array $options])
Phalcon\Logger\Adapter\File const