X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi.php;h=f087d19c8d6b00ceefb777d1b1d81c86d94ef44a;hb=47babea7278ded75045055f34e2453fcfe70f518;hp=f916756883ed7ae8c40756847a70a471576490df;hpb=93c4c2a90f9d22ec94aa8fbc6ac389604da34151;p=civicrm-core.git diff --git a/Civi.php b/Civi.php index f916756883..f087d19c8d 100644 --- a/Civi.php +++ b/Civi.php @@ -1,5 +1,7 @@ get('psr_log'); + public static function log($channel = 'default') { + return \Civi\Core\Container::singleton()->get('psr_log_manager')->getLog($channel); } /** @@ -97,6 +105,15 @@ class Civi { return \Civi\Core\Container::getBootService('paths'); } + /** + * Obtain the formatting object. + * + * @return \Civi\Core\Format + */ + public static function format(): Format { + return new Civi\Core\Format(); + } + /** * Fetch a service from the container. *