Initial commit: CloudOps infrastructure platform

This commit is contained in:
root
2026-04-09 19:58:57 +02:00
commit 1166a52f26
7762 changed files with 839452 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
namespace Mautic\IntegrationsBundle\Sync\Logger;
use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;
class DebugLogger
{
private static ?LoggerInterface $logger = null;
public function __construct(LoggerInterface $logger)
{
static::$logger = $logger;
}
/**
* @param string $integration
* @param string $loggedFrom
* @param string $message
* @param string $urgency
*/
public static function log($integration, $message, $loggedFrom = null, array $context = [], $urgency = LogLevel::DEBUG): void
{
if (!static::$logger) {
return;
}
if (null !== $loggedFrom) {
$context['logged from'] = $loggedFrom;
}
static::$logger->$urgency(strtoupper($integration).' SYNC: '.$message, $context);
}
}