Questions tagged [log]

Questions about error and debug log files of Magento and logging in general

Filter by
Sorted by
Tagged with
4
votes
4answers
7k views

How to Get Distinct Entries from Joined Tables Through Join()

This doubt aroused when I am answering one of the question that posted here. But this question is not a continuation of that question, rather a general doubt. Basically I need to get log-customer ...
0
votes
2answers
14 views

How to stop db.log in magento 2.3

How to stop the DB log i had used the CLI to stop but it is not stopping it increasing to huge file. I used the below command but it is not stopping. It is in the path var/debug/db.log bin/magento ...
0
votes
1answer
723 views

Error: Strict Notice: Only variables should be passed by reference

My log file show error: 2016-02-19T04:20:31+00:00 ERR (3): Strict Notice: Only variables should be passed by reference in /home/..../controllers/IndexController.php on line 17 2016-02-19T04:20:31+...
0
votes
2answers
39 views

Magento 2.3.4 blank page error frontend

We face a issue with our Magento 2.3.4, we got a blank page error when we visit the frontend. Already enabled ini_set('display_errors', 1); but still no error is displayed. We got a debug.log file ...
60
votes
10answers
42k 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
1answer
988 views

How to change default file log name in Magento 2 in Psr Logger?

I have an instance of a logger in my PHP script that I use. I instantiate it like this: $logger = $om->get("Psr\Log\LoggerInterface"); I can log text like this: $logger->debug("caruk"); but ...
0
votes
1answer
21 views

Truncate report_event table in Magento 2

Can I truncate report_event table in Magento 2? I am migrating from Magento 1 to Magento 2 and I find that report_event table has too many records which will slow down the migration process. Is it ...
112
votes
13answers
139k views

Magento 2: Replacement for Mage::log method?

In Magento 1, if you wanted to send a message to the logs, you'd use a static method on the global Mage class. Mage::log($message, Zend_Log::DEBUG, "my-log-file.log"); Is there an equivalent in ...
0
votes
1answer
20 views

FileLock in Magento 2

I want to create a file locker in Magento 2. If i use the default \Magento\Framework\Lock\LockManagerInterface Magento uses the database to save locks by default. https://devdocs.magento.com/guides/...
2
votes
2answers
950 views

Magento 2 Attempt to load value of nonexistent EAV attribute with CategoryInterface

I am getting error as following in my System.log file. Attempt to load value of nonexistent EAV attribute '42' for entity type 'Magento\Catalog\Api\Data\CategoryInterface' I ...
1
vote
1answer
713 views

Where to find Payment Log file in Magento 2?

I want to check if there is any failed transactions occurred on our site. I'm aware that this detail can get from Payment Log file but for my case, there is no Payment Log file is available under var/...
0
votes
0answers
17 views

Please correct the XML data and try again Magento 2.1.9

Getting these errors in my system.logs continuously [2020-03-05 07:11:13] main.INFO: Cache file with merged layout: LAYOUT_adminhtml_STORE1_391fccd54da687afc76a5d6559b714906 and handles default, ...
0
votes
0answers
18 views

main.INFO: Broken reference: Magento 2.1.9

Magento keeps generating these logs [2020-03-05 07:11:13] main.INFO: Broken reference: the 'header' tries to reorder itself towards 'global.notices', but their parents are different: 'page.wrapper' ...
1
vote
0answers
34 views

Database Unnecessary log Table - Magento2

To keep the DB optimized and clean, do we need to set up a cron to truncate the following tables? customer_log; customer_visitor; report_compared_product_index; report_event; report_event_types; ...
18
votes
6answers
22k views

Magento 2 - Turn on / off debug log

How to turn off / on the var/log/debug.log of Magento 2.x.x? Is there a way to set the log level?
0
votes
6answers
79 views

how to empty .log file in magento 2?

how to empty .log file in Magento 2 from Terminal ? system.log exceptional.log debug.log
0
votes
0answers
18 views

How to log html outputs in Magento 2

I am trying to log the block html output to verify the html structure. I am trying with $this->_logger (Psr\Log\LoggerInterface) but not getting. Please advise.
2
votes
5answers
5k views

Magento log is not writing in log folder

Log files are not writing in the log folder but previously they are writing in the folder. Any idea about this?.
2
votes
2answers
874 views

Error log not created

After Magento 2.2.1 CE upgrade I ended up situation that error report file is not created to /var/report directory. There has been an error processing your request Exception printing is disabled ...
0
votes
0answers
21 views

Slow Query in Magento 1.9?

My Slow query log will print this query recursively: SELECT `e`.*, IF(at_name.value_id > 0, at_name.value, at_name_default.value) AS `name`, IF(at_is_active.value_id > 0, at_is_active.value, ...
14
votes
6answers
17k views

How we can print array variable in log file of Magento 2?

I am trying to print array variable contents into a log file. In Magento 1, it was possible using Mage::log(print_r($arr, 1), null, 'logfile.log'); For Magento 2, in class file I have written ...
1
vote
1answer
4k views

How to Log user activity in frontend and admin

Is there any way to using tools log activity? Any one have any suggestion how to do this ? Any tools that helps me to log out for frontend and admin.
3
votes
2answers
63 views

Magento 2 - Table report_viewed_product_index slowed down after so many page views

The table report_viewed_product_index stores the page visits of every users against their user ids. After 1 year of user, when users have huge data of page views product detail page is slower for ...
2
votes
1answer
148 views

Magento 2 creating duplicate log files

I think this started happening after upgrading to Magento 2.2 EE. In my var/log directory, I have 2 files that Magento has created that have duplicate content: system.log and support_report.log. If ...
0
votes
1answer
57 views

Huge db.log in Magento 2.3.3

I enabled the /var/debug/db.log with this: bin/magento dev:query-log:enable With two page loads in front end it generated 128025 lines. Is that normal?
1
vote
0answers
67 views

Implement Graylog in Magento 2.3 with GelfHandler

My Magento 2.3 installation came along with a GelfHandler.php class that sends messages to a Graylog2. The GelfHandler class looks like: <?php /* * This file is part of the Monolog package. * * (...
11
votes
3answers
245 views

View product count not updating

There are 3 different tables that stores product viewed count report_viewed_product_aggregated_daily report_viewed_product_aggregated_monthly report_viewed_product_aggregated_yearly If I want to get ...
2
votes
2answers
725 views

Activity log - Magento Community

My problem is as follows: I have one Magento community site, hosted on a virtual machine. I have two environments: PROD and DEV. 1,400 + products have been deleted from my PROD store. My question ...
0
votes
1answer
45 views

How to override /vendor/magento/framework/Logger/Handler/system.php

I want to override this file vendor/magento/framework/Logger/Handler/System.php Basically I want to disable system.log and exception.log from var/log folder. I found that vendor/magento/...
0
votes
1answer
741 views

Where to view all access raw logs?

Hi is there place where I can view all access to my magento server? I tried looking into /var/log but only see ssl.log which I thought that was it but when I visit my site I cannot see my activity ...
1
vote
2answers
193 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 ...
0
votes
0answers
14 views

Magento2: How to delete custom logs of previous dates before creating new one in database

I need to delete custom logs before creating new one in database and admin. Anyone have solution for this? Thanks
1
vote
0answers
34 views

Magento 2 log file is not creating to test Cron

my code is Vender/Module/etc/crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
0
votes
1answer
49 views

Magento2 - Cron readiness check failure

Cron is not working properly showing error in /var/www/domain.com/var/log/update.log [2019-09-25 07:07:02] update-cron.ERROR: Cron readiness check failure! Found non-writable paths: /var/www/...
23
votes
6answers
2k views

Mage::log() not working on new Magento update (1.9.4.1)

After this new update (1.9.4.1), Mage::log() is not working. Apparently, it has something to do with Zend_Validate_File_Extension on line 819 at Mage.php where it checks if the file is_readable() ...
3
votes
3answers
639 views

Magento fails to create logfiles after installing patch SUPEE-11086

I noticed that magento does not create any new logfiles after installing SUPEE-11086. I tried it like this: Mage::log('test', null, 'test123.log', true); I tried to debug the static log function in ...
2
votes
1answer
85 views

how magento 2 generats and archives log files in file system in server?

I have been searching in internet for this question "how Magento 2 generate log files and make archive files when the day passes is there an cron or configuration in admin area so I can change it for ...
1
vote
1answer
88 views

/shell/log.php?region=%31… getting called

Cannot find anything in the internet about that. Here is whats comming in: 'REQUEST_METHOD' => 'POST', 'REQUEST_URI' => '/shell/log.php?region=%31&kunyuk=%31&MageShell=%31&xcv=%31&...
10
votes
2answers
16k 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
2answers
42 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.
3
votes
3answers
3k views

Magento 2 custom logger 'Missing required argument $name'

I'm trying to create a custom logger, so I can log to a custom log file. I've looked at and followed multiple tutorials that all say the same, however I keep getting the same error. Tutorials that I ...
0
votes
1answer
31 views

what happen if i delete system.log file in magento 2?can create new empty system.log file?

what happen if i delete the system.log file in Magento 2? can create a new empty system.log file? could anyone know?
1
vote
2answers
346 views

Log Cleaning Not Working

On our Magento 1 store log cleaning is not working, even though we have Enabled Log Cleaning in System > Configuration > Advanced > System. Also, when I run php -f shell/log.php clean from the ...
2
votes
1answer
250 views

Magento 2.2.5 - 2.2.7 excesive cron logging in system.log

Magento 2.2.5 brings excesive logging to system.log which can grow up to 100 - 150 MB in 1 month. This will obviously be a problem for many shops. There is an official response to this on github (...
0
votes
0answers
43 views

system.log from getFeedData() they are filling up my logs

Every time I am checking my system.log file I would always find the following warnings. ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Space required after the ...
0
votes
1answer
88 views

magento 2.3 after enabling system logs unable to run any command

I have enabled system logs in magento 2.3.1 using command bin/magento setup:config:set --enable-debug-logging=true But, after enabling it, I am unable to run any command in terminal and getting ...
2
votes
0answers
147 views

Notice: iconv(): Wrong charset, conversion from `MacRoman' to `UTF-16BE'

I am constantly getting this error/Notice on my system logs: Notice: iconv(): Wrong charset, conversion from `MacRoman' to `UTF-16BE' is not allowed in /data/vhosts/edgars/web/lib/Zend/Pdf/...
0
votes
0answers
28 views

Magento 2.2.3 order listing page too slow in admin

I am using Magento 2.2.3 it is in production mode. The order listing page in admin loads very slow. I have been facing this issue since long. To debug this I have also tried enabling query log ...
2
votes
6answers
23k views

How to Clear magento cache and log table

I need to clear all magento cache and log by php script. Any help me.

1
2 3 4 5