22 lines
595 B
PHP
Executable File
22 lines
595 B
PHP
Executable File
<?php
|
|
|
|
namespace JR\NetSuite\Logger;
|
|
|
|
use Magento\Framework\Filesystem\DriverInterface;
|
|
use Monolog\Formatter\LineFormatter;
|
|
|
|
class Handler extends \Magento\Framework\Logger\Handler\Base
|
|
{
|
|
// protected $fileName = '/var/log/jr_netsuite_sync.log';
|
|
protected $loggerType = \Monolog\Logger::DEBUG;
|
|
|
|
public function __construct(
|
|
DriverInterface $filesystem,
|
|
?string $filePath = null,
|
|
?string $fileName = null
|
|
) {
|
|
$this->fileName = '/var/log/jr_netsuite_sync/'.date('Ymd').'.log';
|
|
parent::__construct($filesystem, $filePath, $fileName);
|
|
}
|
|
}
|