Questions tagged [log]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
59 views

How do I access the magento log file using ONLY the web interface

We are getting orders from Magento that feeds into our Enfocus Switch computer. I have an order that has given the error: <?xml version="1.0"?> <response> <message>...
Shawn's user avatar
  • 103
0 votes
2 answers
37 views

How to add custom file from var/log to newrelic

I need to see some logs that I saved in /var/debug.log on NewRelic logs. Can anyone help me with this?
Rannye Rodrigues's user avatar
0 votes
1 answer
24 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!
David Duong's user avatar
0 votes
2 answers
256 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 ...
Allysin's user avatar
  • 250
0 votes
1 answer
117 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!
Piyush Singh's user avatar
0 votes
1 answer
233 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 ...
Rafael Corrêa Gomes's user avatar
1 vote
0 answers
75 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 ...
GerranoMargeno's user avatar
0 votes
2 answers
152 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 ...
Nick's user avatar
  • 121
2 votes
5 answers
434 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 ...
David Buik's user avatar
1 vote
1 answer
34 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 ...
Claims's user avatar
  • 1,154
0 votes
1 answer
51 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 ...
Claims's user avatar
  • 1,154
0 votes
1 answer
529 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 ...
user3718303's user avatar
0 votes
2 answers
524 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.
Magento Inquiry's user avatar
2 votes
1 answer
142 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 ...
lucas's user avatar
  • 309
2 votes
2 answers
192 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\...
sumeet bajaj's user avatar
  • 1,296
1 vote
2 answers
515 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 ...
JDhere's user avatar
  • 15
0 votes
0 answers
53 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 ,...
Jothi Subramanian's user avatar
0 votes
2 answers
569 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, ...
Allysin's user avatar
  • 250
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-...
Sebastian's user avatar
  • 131
0 votes
1 answer
59 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?
user2638108's user avatar
0 votes
1 answer
129 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 ...
IntraPersonalLearner's user avatar
0 votes
3 answers
381 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
Ekta Rathod's user avatar
2 votes
1 answer
913 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: '...
Abilash Erikson's user avatar
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') $...
Sagar Dobariya's user avatar
13 votes
7 answers
35k 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.
Adarsh M's user avatar
  • 584
3 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 &...
Davide Iandoli's user avatar
3 votes
0 answers
226 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 ...
jojo's user avatar
  • 29
0 votes
1 answer
275 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 ...
Ajmalriyaz's user avatar
0 votes
1 answer
33 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.
Petey88's user avatar
  • 47
0 votes
1 answer
695 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 ...
Prakash's user avatar
  • 101
1 vote
1 answer
285 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!
Paul Fan's user avatar
  • 654
1 vote
1 answer
146 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, ...
tarek fellah's user avatar
0 votes
1 answer
321 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 ...
CodeForGood's user avatar
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 ...
Nafsss's user avatar
  • 760
0 votes
1 answer
408 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 ...
Abilash Erikson's user avatar
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 ...
David Duong's user avatar
0 votes
1 answer
355 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 ...
Sabareesh's user avatar
  • 358
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 ...
JGeer's user avatar
  • 1,418
1 vote
1 answer
1k 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 ...
Aji's user avatar
  • 190
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/...
Mohamed El Mrabet's user avatar
1 vote
0 answers
251 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; ...
zuber bandi's user avatar
  • 1,062
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
Yann Martel's user avatar
0 votes
0 answers
76 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
Sayyed Hasan's user avatar
1 vote
1 answer
441 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?
Webninja's user avatar
  • 1,591
1 vote
0 answers
363 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. * * (...
R.P.'s user avatar
  • 99
3 votes
2 answers
938 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 ...
Shoaib Munir's user avatar
  • 9,394
0 votes
1 answer
431 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/...
Chirag Parmar's user avatar
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 ...
Jack Brooks's user avatar
1 vote
0 answers
239 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:...
Asad Khan's user avatar
  • 1,486
0 votes
1 answer
139 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/...
Ketan Borada's user avatar
  • 2,603

1
2 3 4 5 6