gnu-social/src/Util/Log.php
Hugo Sales cc72373e3d
[DOCTRINE][SCHEMADEF] Create a new metadata driver to allow us to continue using static schemaDef functions
This has the benefit of requiring fewer code changes, as well as providing a better isolation
between GNU social and symfony, useful in case the framework needs to be changed
2021-09-14 13:01:34 +01:00

31 lines
500 B
PHP

<?php
namespace App\Util;
use Psr\Log\LoggerInterface;
class Log
{
private static ?LoggerInterface $logger;
public static function setLogger($l): void
{
self::$logger = $l;
}
public static function error(string $msg): void
{
self::$logger->error($msg);
}
public static function info(string $msg): void
{
self::$logger->info($msg);
}
public static function debug(string $msg): void
{
$logger->debug($msg);
}
}