$writer = new \Zend\Log\Writer\Stream(BP . '/var/log/module_debug.log');
$logger = new \Zend\Log\Logger();
$logger->addWriter($writer);
$logger->info(“log messages.”);
Result can be found on : var/log/module_debug.log
About the Author
John Perri Cruz was born in the Philippines, at the cold month of december. (Not cold enough cause Philippines is a tropical country.)
He's currently working as a Fullstack Web developer and when not sleeping, he can be found in coffee shop most of the time.
He gained his experience and skills by making and developing websites and systems for various individuals. He is well equipped with different Web programming languages and tools.
JOHN PERRI CRUZ