X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=Civi.php;h=a018bb54d9d2ef2ff07fd2f682688783a3b13de7;hb=7a9d23521b271682660702ac4d77bc7926082e0b;hp=f916756883ed7ae8c40756847a70a471576490df;hpb=67aa352765b77e88eb8c01f91e86dafb85eb1005;p=civicrm-core.git diff --git a/Civi.php b/Civi.php index f916756883..a018bb54d9 100644 --- a/Civi.php +++ b/Civi.php @@ -82,10 +82,16 @@ class Civi { } /** - * @return \CRM_Core_Error_Log + * Find or create a logger. + * + * @param string $channel + * Symbolic name (or channel) of the intended log. + * This should correlate to a service "log.{NAME}". + * + * @return \Psr\Log\LoggerInterface */ - public static function log() { - return Civi\Core\Container::singleton()->get('psr_log'); + public static function log($channel = 'default') { + return \Civi\Core\Container::singleton()->get('psr_log_manager')->getLog($channel); } /**