. // }}} /** * GNU social's logger wrapper around Symfony's, * keeping our old static interface, which is more convenient and just as powerful * * @package GNUsocial * @category Log * * @author Hugo Sales * @copyright 2020-2021 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ namespace App\Core; use Psr\Log\LoggerInterface; abstract class Log { private static ?LoggerInterface $logger; public static function setLogger($l): void { self::$logger = $l; } /** * Simple static wrappers around Monolog's functions */ public static function __callStatic(string $name, array $args) { return self::$logger->{$name}(...$args); } }