Linked Questions

88 votes
17 answers
146k views

How to create custom Log file in Magento 2?

In Magento 1, it was common to segment logs into different files (to separate logs for payment methods, etc.). That's as easy as changing the $file parameter of Mage::log. Magento 2 has changed to ...
Ryan Hoerr's user avatar
  • 12.2k
7 votes
7 answers
30k views

How to make sure your Magento 2.0 cron job is running

How do I make sure my Magento cron job is running? I setup cron per the Magento 2 installation instructions for the log files. See screen shot (click to enlarge): I am running Magento CE 2.0.2 ...
H. Ferrence's user avatar
  • 1,041
5 votes
4 answers
15k views

sales_order_place_after not triggering in magento 2

I have created etc/events.xml as: <?xml version="1.0"?> <!-- /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <config xmlns:xsi="...
P S's user avatar
  • 1,983
4 votes
4 answers
16k views

Magento 2 Simple Model Observer not working

May be "clarification" is one of the reasons, I am posting a query about Magento 2 Observer here. As I am trying to execute an event observer on sales_quote_collect_totals_after event but it doesn't ...
Vicky Dev's user avatar
  • 1,992
1 vote
4 answers
197 views

Magento 2 - How to add logs inside module

I have added like below way. But it doesn't work for that module use Psr\Log\LoggerInterface; /** * @var LoggerInterface */ protected $logger; protected $resultForwardFactory; public function ...
Prasad D. Warnakulasuriya's user avatar
2 votes
3 answers
1k views

Errors during installation- Submitting Package to Magento Marketplace

I am trying submit one Magento2 Extension on Magento2 marketplace but i am getting following error: Problem 1 Environment: Operating System - Centos 7, PHP Version - 5.6 , Magento Platform - 2.1 ...
Bhupendra Jadeja's user avatar
1 vote
3 answers
912 views

Magento2: how to debug in sales_order_place_after event

registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Hafiz_Sms', __DIR__ ); etc/events....
Hafiz Arslan's user avatar
1 vote
3 answers
2k views

Mage::log() equivalent in Magento 2 [duplicate]

In Magento 1.x I used to use Mage::log(); I need the same function for Magento 2
Kyrylo Romantsov's user avatar

15 30 50 per page
1
2