Linked Questions

1 vote
2 answers

How to put log in observer Magento 2 [duplicate]

I am trying to put log in observer sales_order_save_after Whenever I put logger in the execute I can’t do any checkout it complains about guest checkout payment Is there any other way I could see ...
Jack Brooks's user avatar
0 votes
1 answer

Magento2: What is the process to create custom logger [duplicate]

How I can create my own custom logger in magento2 ? In Magento 1, We simply write own custom log with the following code: Mage::log("Log Message", null, "log_file.log");
Deepak MageDivine's user avatar
3 votes
0 answers

magento2: Enable and Disable log [duplicate]

How to enable or disable log in magento2, basically my question is about enable and disable logging system in magento2, how we can do that, also I want to know how to generate custom log in magento2? ...
Amit Dwivedi's user avatar
  • 1,550
1 vote
3 answers

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
1 vote
1 answer

Unable to locate error log [duplicate]

I have a fresh installation on a hosted environment and setting up my store. In an attempt to see if email is working i tried using the contact us page (default). However i get an error "We can't ...
supergana's user avatar
89 votes
17 answers

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.3k
7 votes
7 answers

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

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
12 votes
2 answers

Log settings location of Magento 2

I would like to know the below 2 locations of Magento 1 in Magento 2. Where can I find these 2 locations in Magento 2 Admin Panel ? First location Second location
abu abu's user avatar
  • 744
4 votes
4 answers

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
2 votes
2 answers

Magento 2 headers already sent error in my controller

I am working through Alan Storm's tutorial about the first steps in setting up a Controller in Magento 2 and came across an odd little error on page load after setting up my route: Warning: Cannot ...
circlesix's user avatar
  • 4,303
0 votes
3 answers

magento 2 sales_order_shipment_save_after does not fire

I created an observer for changing the shipping method amount but it does not work. This is my code Cop/Postexpres/etc/events.xml <?xml version="1.0"?><config xmlns:xsi="http://www.w3....
gh darvishani's user avatar
2 votes
3 answers

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
3 votes
1 answer

Magento2 : Not able to Log Order Details when order is Placed

I am trying to print order details in Log /return JSON result when a new order is placed. Nothing is printing in System.log or in exception.log, Please check my code below, Let me know where I am ...
JB Pakalapati's user avatar
1 vote
3 answers

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

15 30 50 per page