The log is stored in the database in the table 'log' (with your current prefix);
You can find the addLogg function in classes / Logger.php
However, there is no documentation that can be found in the commentary on the method.
/** * add a log item to the database and send a mail if configured for this $severity * * @param string $message the log message * @param int $severity * @param int $error_code * @param string $object_type * @param int $object_id * @param boolean $allow_duplicate if set to true, can log several time the same information (not recommended) * @return boolean true if succeed */ public static function addLog($message, $severity = 1, $error_code = null, $object_type = null, $object_id = null, $allow_duplicate = false)
As I understand from the code, if the second parameter is less than 5 (the value of PS_LOGS_BY_EMAIL from the table 'configuration'), you should also receive an email with a warning. But it will be sent and registered only once (if the last parameter of the $ allow_duplicate method is not true)
Note: This has changed in Prestashop 1.6, now the class is called PrestaShopLogger , use PrestaShopLogger::addLog($message, $severity); . They are shown in the back office under Advanced Settings > Logs .
source share