Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/give/src/Framework/Exceptions/Traits/ |
Upload File : |
<?php
namespace Give\Framework\Exceptions\Traits;
trait Loggable
{
/**
* Gets the Exception::getMessage() method
*
* @since 2.11.1
*/
abstract public function getMessage();
/**
* Returns the human-readable log message
*
* @since 2.11.1
*/
public function getLogMessage(): string
{
return $this->getMessage();
}
/**
* Returns an array with the basic context details
*
* @since 2.21.0 Log meaningful data instead of entire exception object.
* @since 2.11.1
*
* @return array
*/
public function getLogContext(): array
{
return [
'category' => 'Uncaught Exception',
'exception' => [
'File' => basename($this->getFile()),
'Line' => $this->getLine(),
'Message' => $this->getMessage(),
'Code' => $this->getCode()
]
];
}
}