/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Log/Engine
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Log/Engine/ArrayLog.php (2255B)
*/
protected $_defaultConfig = [
'levels' => [],
'scopes' => [],
'formatter' => [
'className' => DefaultFormatter::class,
'includeDate' => false,
],
];
/**
* Captured messages
*
* @var array
*/
protected $content = [];
/**
* Implements writing to the internal storage.
*
* @param mixed $level The severity level of log you are making.
* @param string $message The message you want to log.
* @param array $context Additional information about the logged message
* @return void success of write.
* @see \Cake\Log\Log::$_levels
*/
public function log($level, $message, array $context = [])
{
$message = $this->_format($message, $context);
$this->content[] = $this->formatter->format($level, $message, $context);
}
/**
* Read the internal storage
*
* @return array
*/
public function read(): array
{
return $this->content;
}
/**
* Reset internal storage.
*
* @return void
*/
public function clear(): void
{
$this->content = [];
}
}