File "DebugStdOutLogger.php"
Full Path: /var/www/drive/sentry/sentry/scripts/DebugStdOutLogger.php
File size: 403 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare(strict_types=1);
namespace Sentry\Logger;
use Psr\Log\AbstractLogger;
class DebugStdOutLogger extends AbstractLogger
{
/**
* @param mixed $level
* @param mixed[] $context
*/
public function log($level, $message, array $context = []): void
{
file_put_contents('php://stdout', sprintf("sentry/sentry: [%s] %s\n", $level, (string) $message));
}
}