X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi.php;h=a018bb54d9d2ef2ff07fd2f682688783a3b13de7;hb=dabcbaf3025a734a1809b55adf8e44d9819e0890;hp=f916756883ed7ae8c40756847a70a471576490df;hpb=4806d35ef3df8036a658ff595c7909f4fb3af7ca;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); } /**