Skip to content

Instantly share code, notes, and snippets.

@thedarsideofit
Created May 13, 2018 23:32
Show Gist options
  • Save thedarsideofit/d7a24fa05817511428b0d84155840f7d to your computer and use it in GitHub Desktop.
Save thedarsideofit/d7a24fa05817511428b0d84155840f7d to your computer and use it in GitHub Desktop.
Debug GET POST logging array prestashop
//Fuente http://vblanch.com/logging-to-file-in-prestashop/?lang=es
$logger = new FileLogger(0); //0 == nivel de debug. Sin esto logDebug() no funciona.
$logger->setFilename(_PS_ROOT_DIR_."/log/debug.log");
$logger->logDebug("Nueva Petición variables GET");
$logger->logDebug(print_r($_GET, true));
$logger->logDebug("Nueva Petición variables POST");
$logger->logDebug(print_r($_POST,true));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment