Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
log.php
Go to the documentation of this file.
1 <?php
7 declare(strict_types=1);
8 
9 if (!isset($_GET['name'])) {
10  throw new \InvalidArgumentException(
11  'The name of log file is required for getting logs.'
12  );
13 }
14 $name = urldecode($_GET['name']);
15 if (preg_match('/\.\.(\\\|\/)/', $name)) {
16  throw new \InvalidArgumentException('Invalid log file name');
17 }
18 
19 echo serialize(file_get_contents('../../../../var/log' .'/' .$name));
if(!isset($_GET['name'])) $name
Definition: log.php:14