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
framework
Logger
Handler
System.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Logger\Handler
;
8
9
use
Magento\Framework\Filesystem\DriverInterface
;
10
use Monolog\Logger;
11
12
class
System
extends
Base
13
{
17
protected
$fileName
=
'/var/log/system.log'
;
18
22
protected
$loggerType
=
Logger::INFO
;
23
27
protected
$exceptionHandler
;
28
34
public
function
__construct
(
35
DriverInterface
$filesystem
,
36
Exception
$exceptionHandler
,
37
$filePath =
null
38
) {
39
$this->exceptionHandler =
$exceptionHandler
;
40
parent::__construct(
$filesystem
, $filePath);
41
}
42
49
public
function
write
(array $record)
50
{
51
if
(isset($record[
'context'
][
'exception'
])) {
52
$this->exceptionHandler->handle($record);
53
54
return
;
55
}
56
57
$record[
'formatted'
] = $this->getFormatter()->format($record);
58
59
parent::write($record);
60
}
61
}
Magento\Framework\Logger\Handler\System\$fileName
$fileName
Definition:
System.php:17
Magento\Framework\Logger\Handler\System\__construct
__construct(DriverInterface $filesystem, Exception $exceptionHandler, $filePath=null)
Definition:
System.php:34
Magento\Framework\Logger\Handler\System\$exceptionHandler
$exceptionHandler
Definition:
System.php:27
INFO
const INFO
Definition:
pre_composer_update_2.3.php:63
Magento\Framework\Logger\Handler\Exception
Definition:
Exception.php:11
Magento\Framework\Logger\Handler\System\write
write(array $record)
Definition:
System.php:49
Magento\Framework\Logger\Handler\Base
Definition:
Base.php:14
Magento\Framework\Logger\Handler\System
Definition:
System.php:12
Magento\Framework\Logger\Handler\System\$loggerType
$loggerType
Definition:
System.php:22
Magento\Framework\Logger\Handler\Base\$filesystem
$filesystem
Definition:
Base.php:29
Magento\Framework\Filesystem\DriverInterface
Definition:
DriverInterface.php:18
Magento\Framework\Logger\Handler
Definition:
Base.php:7