Fatal error: Uncaught Error: Class 'Phalcon\Logger\Adapter\File' not found in /var/www/html/luminous/LuminousSolarAPI/index.php:

Fatal error: Uncaught Error: Class 'Phalcon\Logger\Adapter\File' not found in /var/www/html/luminous/LuminousSolarAPI/index.php:19 Stack trace: #0 {main} thrown in /var/www/html/luminous/LuminousSolarAPI/index.php on line 19

This class is missing in Phalcon 4.x version kindly help how can I get that class file.

edited Feb '19

You need to use Phalcon\Logger\Adapter\Stream now

https://docs.phalcon.io/4.0/en/logger-adapters

 $logger = new \Phalcon\Logger\Adapter\Stream("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();