Linked Questions
23 questions linked to/from Magento 2: Replacement for Mage::log method?
87
votes
16
answers
142k
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 ...
2
votes
2
answers
9k
views
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 ...
3
votes
1
answer
1k
views
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 ...
1
vote
4
answers
172
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 ...
1
vote
2
answers
3k
views
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 ...
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="...
0
votes
2
answers
28
views
What is the query readers here i can't understand magento 2.3
I can't find the what query rendes here and i can't it is not readable so any can to find what query renders hear please tell what are the table involved here
public function getCount(\Magento\...
0
votes
3
answers
2k
views
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....
12
votes
2
answers
18k
views
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
0
votes
2
answers
789
views
Magento 2 - Create a log file in plugin that will print log when data is inserted in database
I have entered data in the database using object Manager in Model file itself. I want to print a log file from the plugin that will print the log of the last data that is inserted in the database.
1
vote
1
answer
171
views
How to implement the following event in Magento : As soon as the customer logs in the details are printed in the log file [duplicate]
I have to print the login details of the customer and when he logged in, into the log file. How to implement the following problem in Magento 2.
1
vote
3
answers
892
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....
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 ...
2
votes
1
answer
754
views
Magento 2: Checkout afterplace order plugin not working
Im creating a Magento 2 checkout plugin, I want to fetch the orderdata and send it to a third party for order handling.
I have made a plugin for the Magento\Sales\Api\OrderManagementInterface class, ...
1
vote
1
answer
161
views
magento 2 how to print log
After installing Magento 2.3, When I am trying to open the admin panel login screen is blank and my console contains an error as shown in the image. if anyone has a solution then please let me know.
...