X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi.php;h=f087d19c8d6b00ceefb777d1b1d81c86d94ef44a;hb=da410c8fc017670c6943f9b7568c7d03683feee8;hp=f916756883ed7ae8c40756847a70a471576490df;hpb=00842cf6130d2ec29d46e79c04a43ad2a69c81b1;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. *