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
22 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.
user avatar
0 votes
0 answers
7 views

var > debug > db.log file keep generating, Not able to disable : M2

I have follow bellow steps to stop creating entry in db.log file in var > debug folder Ref.: Huge db.log in Magento 2.3.3 How to stop db.log in magento 2.3 Magento 2 log database queries php bin/...
user avatar
2 votes
1 answer
35 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 ...
user avatar
  • 197
1 vote
1 answer
73 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\...
user avatar
  • 1,143
1 vote
2 answers
53 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 ...
user avatar
  • 15
0 votes
0 answers
20 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 ,...
user avatar
0 votes
2 answers
53 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, ...
user avatar
  • 306
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-...
user avatar
  • 131
0 votes
1 answer
33 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?
user avatar
0 votes
1 answer
42 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 ...
user avatar
0 votes
3 answers
143 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
user avatar
1 vote
1 answer
233 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: '...
user avatar
3 votes
3 answers
835 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') $...
user avatar
7 votes
6 answers
7k 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.
user avatar
  • 482
1 vote
0 answers
767 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 &...
user avatar
2 votes
0 answers
84 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 ...
user avatar
  • 177
0 votes
1 answer
34 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 ...
user avatar
0 votes
1 answer
18 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.
user avatar
  • 47
0 votes
1 answer
413 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 ...
user avatar
  • 101
1 vote
1 answer
94 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!
user avatar
  • 518
1 vote
1 answer
34 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, ...
user avatar
0 votes
1 answer
143 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 ...
user avatar
0 votes
1 answer
618 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 ...
user avatar
  • 700
0 votes
1 answer
279 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 ...
user avatar
0 votes
1 answer
518 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 ...
user avatar
0 votes
1 answer
247 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 ...
user avatar
  • 298
0 votes
3 answers
717 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 ...
user avatar
  • 1,474
1 vote
1 answer
567 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 ...
user avatar
  • 170
0 votes
1 answer
580 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/...
user avatar
1 vote
0 answers
100 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; ...
user avatar
2 votes
6 answers
4k 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
user avatar
0 votes
0 answers
52 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
user avatar
0 votes
1 answer
226 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?
user avatar
  • 1,481
1 vote
0 answers
273 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. * * (...
user avatar
  • 99
3 votes
2 answers
596 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 ...
user avatar
  • 8,828
0 votes
1 answer
241 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/...
user avatar
1 vote
2 answers
2k 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 ...
user avatar
1 vote
0 answers
131 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:...
user avatar
  • 1,434
0 votes
1 answer
121 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/...
user avatar
  • 2,443
2 votes
1 answer
487 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 ...
user avatar
1 vote
1 answer
98 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&...
user avatar
  • 235
0 votes
2 answers
438 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.
user avatar
0 votes
1 answer
49 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?
user avatar
  • 1,047
11 votes
3 answers
607 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 ...
user avatar
0 votes
1 answer
251 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 ...
user avatar
  • 377
2 votes
0 answers
344 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/...
user avatar
  • 75
-1 votes
1 answer
216 views

Magento 1.9.4.1 unable to add logs Mage::log() issue? [duplicate]

I have installed Magento 1.9.4.1 When I tried to add logs, log files not creating. I just want to ask is it a new feature of an updated version or is there any patches available for it?
user avatar
1 vote
3 answers
710 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....
user avatar
3 votes
3 answers
782 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 ...
user avatar
  • 2,403
24 votes
6 answers
3k 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() ...
user avatar

1
2 3 4 5 6