Created
          May 13, 2018 23:32 
        
      - 
      
 - 
        
Save thedarsideofit/d7a24fa05817511428b0d84155840f7d to your computer and use it in GitHub Desktop.  
    Debug GET POST logging array prestashop
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //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