projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(REF) Regen CRM/Core/DAO/CustomField.php
[civicrm-core.git]
/
Civi.php
diff --git
a/Civi.php
b/Civi.php
index f916756883ed7ae8c40756847a70a471576490df..a018bb54d9d2ef2ff07fd2f682688783a3b13de7 100644
(file)
--- 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
);
}
/**
}
/**