如何在prestashop中添加自定义文件日志?

如何在prestashop中添加自定义文件日志?,prestashop,prestashop-1.7,Prestashop,Prestashop 1.7,如何使用prestashop 1.7添加登录文件 $logger = new FileLogger(0); //0 == debug level, logDebug() won’t work without this. $logger->setFilename(_PS_ROOT_DIR_."/log/debug.log"); $logger->logDebug("message 1"); $logger->logDebug("message 2"); 调试消息如下所示(在Pr

如何使用prestashop 1.7添加登录文件

$logger = new FileLogger(0); //0 == debug level, logDebug() won’t work without this.
$logger->setFilename(_PS_ROOT_DIR_."/log/debug.log");
$logger->logDebug("message 1");
$logger->logDebug("message 2");
调试消息如下所示(在Prestashop中根目录的“/log/Debug.log”中):

调试2018/08/13–14:31:48:你好,世界

我希望这对某人有所帮助:-)。干杯

调试消息如下所示(在Prestashop中根目录的“/log/Debug.log”中):

调试2018/08/13–14:31:48:你好,世界

我希望这对某人有所帮助:-)。干杯