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
module-developer
Model
Logger
Handler
Debug.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Developer\Model\Logger\Handler
;
7
8
use
Magento\Framework\App\Config\ScopeConfigInterface
;
9
use
Magento\Framework\App\State
;
10
use
Magento\Framework\Filesystem\DriverInterface
;
11
use
Magento\Store\Model\ScopeInterface
;
12
use
Magento\Framework\App\DeploymentConfig
;
13
17
class
Debug
extends
\Magento\Framework\Logger\Handler\Debug
18
{
22
private
$state;
23
27
private
$scopeConfig;
28
32
private
$deploymentConfig;
33
41
public
function
__construct
(
42
DriverInterface
$filesystem
,
43
State
$state,
44
ScopeConfigInterface
$scopeConfig,
45
DeploymentConfig
$deploymentConfig,
46
$filePath =
null
47
) {
48
parent::__construct(
$filesystem
, $filePath);
49
50
$this->state = $state;
51
$this->scopeConfig = $scopeConfig;
52
$this->deploymentConfig =
$deploymentConfig
;
53
}
54
58
public
function
isHandling
(array $record)
59
{
60
if
($this->deploymentConfig->isAvailable()) {
61
return
62
parent::isHandling($record)
63
&& $this->scopeConfig->getValue(
'dev/debug/debug_logging'
,
ScopeInterface::SCOPE_STORE
);
64
}
65
66
return
parent::isHandling($record);
67
}
68
}
Magento\Store\Model\ScopeInterface\SCOPE_STORE
const SCOPE_STORE
Definition:
ScopeInterface.php:21
Magento\Developer\Model\Logger\Handler\Debug\__construct
__construct(DriverInterface $filesystem, State $state, ScopeConfigInterface $scopeConfig, DeploymentConfig $deploymentConfig, $filePath=null)
Definition:
Debug.php:41
Magento\Framework\App\DeploymentConfig
Definition:
DeploymentConfig.php:17
Magento\Framework\Logger\Handler\Debug
Definition:
Debug.php:11
Magento\Developer\Model\Logger\Handler\Debug
Definition:
Debug.php:17
Magento\Developer\Model\Logger\Handler\Debug\isHandling
isHandling(array $record)
Definition:
Debug.php:58
$deploymentConfig
$deploymentConfig
Definition:
health_check.php:18
Magento\Store\Model\ScopeInterface
Definition:
ScopeInterface.php:12
Magento\Framework\App\State
Definition:
State.php:17
Magento\Framework\App\State
Definition:
CleanupFiles.php:7
Magento\Framework\Logger\Handler\Base\$filesystem
$filesystem
Definition:
Base.php:29
Magento\Framework\Filesystem\DriverInterface
Definition:
DriverInterface.php:18
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15
Magento\Framework\App\DeploymentConfig
Definition:
CommentParser.php:6
Magento\Developer\Model\Logger\Handler
Definition:
DebugTest.php:6