2024-04-19 16:15:46 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2024-09-02 08:48:43 +02:00
|
|
|
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
|
2024-04-19 16:15:46 +02:00
|
|
|
*
|
2024-09-02 08:48:43 +02:00
|
|
|
* For the full copyright and license information, please view
|
|
|
|
* the LICENSE file that was distributed with this source code.
|
2024-04-19 16:15:46 +02:00
|
|
|
*
|
|
|
|
* https://www.d3data.de
|
|
|
|
*
|
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
2024-09-02 08:48:43 +02:00
|
|
|
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
|
|
|
|
* @link https://www.oxidmodule.com
|
2024-04-19 16:15:46 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace D3\ModCfg\Application\Model\Log;
|
|
|
|
|
2024-06-26 13:49:30 +02:00
|
|
|
use Psr\Log\LoggerInterface;
|
2024-04-19 16:15:46 +02:00
|
|
|
use Psr\Log\LoggerTrait;
|
|
|
|
|
2024-09-02 08:48:43 +02:00
|
|
|
class d3NullLogger implements d3LogInterface
|
2024-04-19 16:15:46 +02:00
|
|
|
{
|
|
|
|
use LoggerTrait;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sModId
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function setModId($sModId)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sProfileId
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function setProfileId($sProfileId)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $iLogType1
|
|
|
|
* @param int|null $iLogType2
|
|
|
|
* @param int|null $iLogType3
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function setLogType($iLogType1, $iLogType2 = null, $iLogType3 = null)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param $sStatus
|
|
|
|
* @param false $oSet
|
|
|
|
* @return false
|
|
|
|
*/
|
|
|
|
public function getLogStatus($sStatus, $oSet = false)
|
|
|
|
{
|
|
|
|
unset($sStatus);
|
|
|
|
unset($oSet);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2024-09-02 08:48:43 +02:00
|
|
|
* @param int $level
|
|
|
|
* @param string $sClass
|
|
|
|
* @param string $sFnc
|
|
|
|
* @param int $iLine
|
2024-04-19 16:15:46 +02:00
|
|
|
* @param string|null $sAction
|
|
|
|
* @param string|null $mText
|
2024-09-02 08:48:43 +02:00
|
|
|
* @param bool $blDie
|
2024-04-19 16:15:46 +02:00
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function log(
|
2024-09-02 08:48:43 +02:00
|
|
|
$level = d3LogLevel::EMERGENCY,
|
2024-04-19 16:15:46 +02:00
|
|
|
$sClass = self::class,
|
|
|
|
$sFnc = __FUNCTION__,
|
|
|
|
$iLine = __LINE__,
|
|
|
|
$sAction = null,
|
|
|
|
$mText = null,
|
|
|
|
$blDie = false
|
|
|
|
) {
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sClass
|
|
|
|
* @param string $sFnc
|
|
|
|
* @param int $iLine
|
|
|
|
* @param string|null $sAction
|
|
|
|
* @param string|null $mText
|
|
|
|
* @param bool $blDie
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function emergency($sClass = self::class, $sFnc = __FUNCTION__, $iLine = __LINE__, $sAction = null, $mText = null, $blDie = false)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sClass
|
|
|
|
* @param string $sFnc
|
|
|
|
* @param int $iLine
|
|
|
|
* @param string|null $sAction
|
|
|
|
* @param string|null $mText
|
|
|
|
* @param bool $blDie
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function alert($sClass = self::class, $sFnc = __FUNCTION__, $iLine = __LINE__, $sAction = null, $mText = null, $blDie = false)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sClass
|
|
|
|
* @param string $sFnc
|
|
|
|
* @param int $iLine
|
|
|
|
* @param string|null $sAction
|
|
|
|
* @param string|null $mText
|
|
|
|
* @param bool $blDie
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function critical($sClass = self::class, $sFnc = __FUNCTION__, $iLine = __LINE__, $sAction = null, $mText = null, $blDie = false)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sClass
|
|
|
|
* @param string $sFnc
|
|
|
|
* @param int $iLine
|
|
|
|
* @param string|null $sAction
|
|
|
|
* @param string|null $mText
|
|
|
|
* @param bool $blDie
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function error($sClass = self::class, $sFnc = __FUNCTION__, $iLine = __LINE__, $sAction = null, $mText = null, $blDie = false)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sClass
|
|
|
|
* @param string $sFnc
|
|
|
|
* @param int $iLine
|
|
|
|
* @param string|null $sAction
|
|
|
|
* @param string|null $mText
|
|
|
|
* @param bool $blDie
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function warning($sClass = self::class, $sFnc = __FUNCTION__, $iLine = __LINE__, $sAction = null, $mText = null, $blDie = false)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sClass
|
|
|
|
* @param string $sFnc
|
|
|
|
* @param int $iLine
|
|
|
|
* @param string|null $sAction
|
|
|
|
* @param string|null $mText
|
|
|
|
* @param bool $blDie
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function notice($sClass = self::class, $sFnc = __FUNCTION__, $iLine = __LINE__, $sAction = null, $mText = null, $blDie = false)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sClass
|
|
|
|
* @param string $sFnc
|
|
|
|
* @param int $iLine
|
|
|
|
* @param string|null $sAction
|
|
|
|
* @param string|null $mText
|
|
|
|
* @param bool $blDie
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function info($sClass = self::class, $sFnc = __FUNCTION__, $iLine = __LINE__, $sAction = null, $mText = null, $blDie = false)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sClass
|
|
|
|
* @param string $sFnc
|
|
|
|
* @param int $iLine
|
|
|
|
* @param string|null $sAction
|
|
|
|
* @param string|null $mText
|
|
|
|
* @param bool $blDie
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function debug($sClass = self::class, $sFnc = __FUNCTION__, $iLine = __LINE__, $sAction = null, $mText = null, $blDie = false)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $sClass
|
|
|
|
* @param string $sFnc
|
|
|
|
* @param int $iLine
|
|
|
|
* @param string|null $sAction
|
|
|
|
* @param string|null $mText
|
|
|
|
* @param bool $blDie
|
|
|
|
*
|
|
|
|
* @return d3LogInterface
|
|
|
|
*/
|
|
|
|
public function test($sClass = self::class, $sFnc = __FUNCTION__, $iLine = __LINE__, $sAction = null, $mText = null, $blDie = false)
|
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $iType
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function addLogType($iType)
|
|
|
|
{
|
|
|
|
return d3LogLevel::NONE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $iType
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function removeLogType($iType)
|
|
|
|
{
|
|
|
|
return d3LogLevel::NONE;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function d3GetProfiling()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public function convertAdminLogSettings()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|