Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
utils
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
));
Magento\Framework\Filesystem\Driver\file_get_contents
file_get_contents()
Definition:
http_mock.php:15
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14