I came across the following line in a Prestashop module:
Logger::addLog('2: md5 string is '.$md5HashData, 1);
Where is the log saved?
I came across the following line in a Prestashop module:
Logger::addLog('2: md5 string is '.$md5HashData, 1);
Where is the log saved?
The log is saved in database in 'log' table (with your current prefix);
You can find the addLogg function from classes/Logger.php
However there is no documentation you can find something useful from method comment
As I understand from the code if the second parameter would be less than 5 (value of PS_LOGS_BY_EMAIL from 'configuration' table) you should also receive email with the alert message. But it will be sent and logged only once (if last parameter $allow_duplicate of the method wouldn't be true)
Note: This has changed in Prestashop 1.6, the class is now called
PrestaShopLogger
, usePrestaShopLogger::addLog($message, $severity);
instead.