����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.169 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/./././public_html/vendor/algolia/algoliasearch-client-php/src/Log/ |
Upload File : |
<?php
namespace Algolia\AlgoliaSearch\Log;
use Psr\Log\AbstractLogger;
/**
* This logger is only meant to be used in development, in order
* to easily debug your Algolia calls. Don't use it on production!
*
* @internal
*/
final class DebugLogger extends AbstractLogger
{
/**
* Whether the logger is enabled or not.
*
* @var bool
*/
private static $isEnabled = false;
/**
* Disables the logger.
*/
public static function disable()
{
self::$isEnabled = false;
}
/**
* Enables the logger.
*/
public static function enable()
{
self::$isEnabled = true;
}
/**
* {@inheritdoc}
*/
public function log($level, $message, array $context = [])
{
if (self::$isEnabled) {
$logMessage = [
'level' => $level,
'message' => $message,
'context' => $context,
];
if (function_exists('dump')) {
dump($logMessage);
} else {
var_dump($logMessage);
}
}
}
}