Questions tagged [log]
Questions about error and debug log files of Magento and logging in general
272
questions
0
votes
1
answer
18
views
Our Magento website show file log name like debug.log-20231106.gz, Where and how can I change it?
I think normal, Magento doesn't change the file log every day like this.
https://prnt.sc/Fu2U8hDurkAs
Does anyone have experience with it? Thank you so much!
0
votes
2
answers
143
views
main.WARNING: Memory size allocated for the temporary table is more than 20% of innodb_buffer_pool_size
Magento 2.4.5-p1
Smartwave Porto theme
I have found the following Error in my logs:
main.WARNING: Memory size allocated for the temporary table is more than 20% of innodb_buffer_pool_size. Please ...
0
votes
1
answer
89
views
Exception log file not generating after I upgraded my Magento from 2.4.2 to 2.4.6
After upgrading from magento 2.4.2 to 2.4.6, exception log file is not generating. How do I fix this? Please help!
0
votes
1
answer
173
views
Default store is inactive
I start to see this error message below saying the Default store is inactive, but my stores are working fine, how could I solve it?
[2023-02-21T19:23:08.544484+00:00] report.ERROR: Default store is ...
1
vote
0
answers
59
views
Magento x 2.4 get.php error
In var/log both in exception.log and in system.log I have this type of error that I don't know what is due and I have no idea how to debug it, can someone give me clarification on what is due and ...
0
votes
2
answers
122
views
Magento not displaying PHP errors in developer mode for custom shipping module
I'm writing a custom shipping module and have an error somewhere. When loading the shopping cart it displays "Something went wrong. Please try again."
I have developer mode on so normally ...
2
votes
5
answers
302
views
Configure Debug Logging Type
As Magento throws info into system.log and debug.log I can see 3 different types
Is it possible to disable main.INFO and main.DEBUG while keeping main.CRITICAL to avoid large file size for logging ...
0
votes
1
answer
31
views
Issue with regexp to retrieve log messages
I'm having a little issue with regexp, i know this isn't directly a magento issue though.
My goal is to get a sub printing of magento logs in the admin.
To do so, I've created the following method
...
0
votes
1
answer
47
views
Does magento and PSR provides a better way of custom logging than Zend
in previous magento version, i used to make a custom logger, using Zend\Log\Logger This was allowing me to create as many logger with custom name as i wanted.
I would like to update this behavior with ...
0
votes
1
answer
482
views
Debug with Magento 2.4.4
Hello i'd like to understand how to enable all possible error log that can happen in my Magento 2.4.4 in production mode since website is live.
I checked that in var/log folder there are usefull files ...
0
votes
2
answers
421
views
How to generate custom log file in magento 2?
I have tried generating custom log file using helper and logger but the file did not generate.
2
votes
1
answer
131
views
Undefined index: simple_sku Magento 1.9
I am writing code in magento 1.9 checkout and when adding a new product to cart it generates the error in the log, and my code seems to be correct.
Error message that appears in the log.
The problem ...
2
votes
2
answers
184
views
Magento 2 Type Error occurred when creating object: Wyomind\Framework\Magento\Ui\TemplateEngine\Xhtml\Result
Magento 2.4 using when we are trying to log in from admin then we are getting this error -
main.CRITICAL: Type Error occurred when creating object:
Wyomind\Framework\Magento\Ui\TemplateEngine\...
1
vote
2
answers
443
views
How to create a custom dynamic logger?
I need a dynamic logger using monologger. My problem statement is, I need a logger which can be named dynamically when I call it. For example I use a bill.php, I need the logger to generate a log file ...
0
votes
0
answers
49
views
log missed while cron run
I have created cron which is scheduled for every 5 mins.In the cron,based on some conditions I have inserted value to custom table, while insert I have logged value in custom log file.For sometimes ,...
0
votes
2
answers
505
views
How to best manage logs in var/log?
Magento 2.4.2-p1
Smartwave Porto theme
Amasty extensions
I have many Errors in my log files in:
/public_html/var/log
Some of these log files are getting quite large so I thought if I rename them, ...
1
vote
1
answer
2k
views
Log4j CVE-2021-44228 Magento 2.3 / 2.4 with ElasticSearch
Has someone checked if a Magento 2.3/2.4 installation with ElasticSearch is vulnerable to the Log4j exploit CVE-2021-44228?
I've checked for the relevant .jar files in the ElasticSearch Apache CVE-...
0
votes
1
answer
57
views
Is there any way to store Magento 2 logs into database. Is it possible by overriding any functions
Is there any way to store Magneto 2 logs into the database? Is it possible by overriding any functions?
0
votes
1
answer
112
views
How can I save the customer's login & registration form data in my log?
I want to add the form data in log files when the customer submits the login/registration form on my Magento 1 store. How can I do it using login.phmtl and register.phtml template files?
I am using ...
0
votes
3
answers
358
views
Magento 2: Log Error message on phtml
how can I print the log error message in the phtml file? the error can be shown to the user on the page
2
votes
1
answer
851
views
Invalid template file: 'Magento_catalog::product/list.phtml'
I noticed I am getting error in my magento 2.2.6 website's system.log continuously
[2021-09-16 10:10:56] main.CRITICAL: Invalid template file: 'Magento_catalog::product/list.phtml' in module: '...
6
votes
4
answers
4k
views
Create custom log file magento 2.4.3
for 2.4.2 below code working
$writer = new \Zend\Log\Writer\Stream(BP . '/var/log/custom.log');
$logger = new \Zend\Log\Logger();
$logger->addWriter($writer);
$logger->info('Custom message')
$...
12
votes
7
answers
30k
views
Logging in Magento 2.4+
What are the different way a developer can log messages in Magento 2.4+? Zend logger can't be used anymore either.
2
votes
0
answers
2k
views
Call to undefined method Magento\Framework\Logger\LoggerProxy::setHandlers magento 2.4.2
In my custom Magento 2 module I added a custom logger
\Vendor\App\Logger\Logger.php
<?php
namespace Vendor\App\Logger;
class Logger extends \Monolog\Logger
{
}
\Vendor\App\Logger\Handler.php
&...
3
votes
0
answers
222
views
How to make Magento 2 log timestamp follows locale configuration?
How can i make exception.log, system.log, , debug.log or any other log inside var/log which is generated from magento 2 follows the configuration timestamp, right now it is showing the utc timezon in ...
0
votes
1
answer
225
views
Custom log file not creating
I am using Magento 2.4.0 and trying to put a custom log for my custom module by extending the \Monolog\Logger but the log file is not created in the Magentoroot/var/log path. I have attached all the ...
0
votes
1
answer
28
views
Magento2 Multistore Separate Logging Question
Is there a way to enable separate logs for each store within my Magento 2.3 set up? I am having difficulties when searching through the logs for issues pertaining to specific stores.
0
votes
1
answer
649
views
Redirect var/reports/* to stdout
I am using Magento 1.9 and want to redirect all the files generated inside the folder var/reports to stdout. If it is possible then how can I do it? If it is not then may be we can output all the ...
1
vote
1
answer
260
views
how to write the log file into database table?
I have a log file (payment.log) want to write into database table, is there any reference I can follow?
thanks!
1
vote
1
answer
123
views
Not all errors are displayed in var/log
I'm on developer mode, with a whm installed server with different cpanel accounts, our production website is on developer mode but sometimes for some products the checkout cart page show a blank page, ...
0
votes
1
answer
283
views
PHP 7: How to create a separate log file in PHP to log only the order data(Order info retrieved from an Magento Order object)?
I have an application developed to manage the orders, vendors and many more things. The default error_log() functionality has already been in use across the application coded in PHP to log not only ...
1
vote
3
answers
2k
views
How to create custom log file in magento 2
Can anyone help me in creating custom logger file in mmagento 2.
I want to display collection object in log file.
So far, i have tried this code but did not work.
getting $collection object from ...
0
votes
1
answer
395
views
Magento 2 website crash always
Hi today i have noticed my website crashes always . so i have seen many kind of errors in website (An error has happened during application run. See exception log for details. Could not write error ...
0
votes
1
answer
1k
views
A field name was provided without a field value in vendor/laminas/laminas-http/src/Headers.php
After installed Magento 2.3.5, I check my log file and it show an issue:
[12-May-2020 18:29:05 UTC] PHP Fatal error: Uncaught Laminas\Http\Header\Exception\InvalidArgumentException: A field name was ...
0
votes
1
answer
344
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
3
answers
1k
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 ...
1
vote
1
answer
958
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 ...
0
votes
1
answer
1k
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/...
1
vote
0
answers
240
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;
...
2
votes
6
answers
6k
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
0
answers
75
views
Internal Error I am getting this error in magento 2 payment page and unable to make payments
Does anyone know how to solve this
1
vote
1
answer
405
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
0
answers
357
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.
*
* (...
3
votes
2
answers
892
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 some ...
0
votes
1
answer
400
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/...
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 ...
1
vote
0
answers
234
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
1
answer
135
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/...
2
votes
1
answer
1k
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
1
answer
120
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&...