File manager - Edit - /home/carfac/public_html/moabmonsters.com/wordpress/wp-content/plugins/cloudflare/src/Integration/DefaultLogger.php
Back
<?php namespace Cloudflare\APO\Integration; use Cloudflare\APO\Vendor\Psr\Log\AbstractLogger; use Cloudflare\APO\Vendor\Psr\Log\LogLevel; use Cloudflare\APO\Vendor\Psr\Log\LoggerInterface; class DefaultLogger extends AbstractLogger implements LoggerInterface { private $debug; const PREFIX = '[Cloudflare]'; /** * @param bool|false $debug */ public function __construct($debug = false) { $this->debug = $debug; } /** * Logs with an arbitrary level. * * @param mixed $level * @param string $message * @param array $context */ public function log($level, $message, array $context = array()) { return error_log(self::PREFIX.' '.strtoupper($level).': '.$message.' '. (!empty($context) ? print_r($context, true) : '')); } /** * Detailed debug information. * * @param string $message * @param array $context */ public function debug($message, array $context = array()) { if ($this->debug) { return $this->log(LogLevel::DEBUG, $message, $context); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.24 |
proxy
|
phpinfo
|
Settings