Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Debug Class Reference
Inheritance diagram for Debug:
Debug Base

Public Member Functions

 __construct (DriverInterface $filesystem, State $state, ScopeConfigInterface $scopeConfig, DeploymentConfig $deploymentConfig, $filePath=null)
 
 isHandling (array $record)
 
- Public Member Functions inherited from Base
 __construct (DriverInterface $filesystem, $filePath=null, $fileName=null)
 
 write (array $record)
 

Additional Inherited Members

- Protected Attributes inherited from Debug
 $fileName = '/var/log/debug.log'
 
 $loggerType = Logger::DEBUG
 
- Protected Attributes inherited from Base
 $fileName
 
 $loggerType = Logger::DEBUG
 
 $filesystem
 

Detailed Description

Enable/disable debug logging based on the store config setting

Definition at line 17 of file Debug.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( DriverInterface  $filesystem,
State  $state,
ScopeConfigInterface  $scopeConfig,
DeploymentConfig  $deploymentConfig,
  $filePath = null 
)
Parameters
DriverInterface$filesystem
State$state
ScopeConfigInterface$scopeConfig
DeploymentConfig$deploymentConfig
string$filePath

Definition at line 41 of file Debug.php.

47  {
48  parent::__construct($filesystem, $filePath);
49 
50  $this->state = $state;
51  $this->scopeConfig = $scopeConfig;
52  $this->deploymentConfig = $deploymentConfig;
53  }

Member Function Documentation

◆ isHandling()

isHandling ( array  $record)

{}

Definition at line 58 of file Debug.php.

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  }

The documentation for this class was generated from the following file: