Hello everyone,
I am new to magento 2, so please help me.
I wanted to generate log in a site by using object manager.
Thanks in advance.
Solved! Go to Solution.
Hello @jenny09yop1298 ,
Please check the below code:
\Magento\Framework\App\ObjectManager::getInstance() ->get(\Psr\Log\LoggerInterface::class)->debug('your message');
I hope this will help you. If it helps you please accept it as solution and give kudos.
Regards.
Hello @jenny09yop1298 ,
Please check the below code:
\Magento\Framework\App\ObjectManager::getInstance() ->get(\Psr\Log\LoggerInterface::class)->debug('your message');
I hope this will help you. If it helps you please accept it as solution and give kudos.
Regards.
Thank you @vishi_gulati
You saved my time.