Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LogManager - If setting alternate channel, then it should use a clone
Consider this example: ```php class Foo { private $log; public function __construct() { $this->log = Civi::log('foo'); } public function fooify() { $this->info("Hello from Foo"); } } class Bar { private $log; public function __construct() { $this->log = Civi::log('bar'); } public function barbecueTofu() { $this->info("Hello from Bar"); } } $foo = new Foo(); $bar = new Bar(); $foo->fooify(); $bar->barbecueTofu(); ``` If `Foo` and `Bar` reference the same shared `CRM_Core_Error_Log $log`, then one or the other will route to the wrong place. Instead, they should have separate instances.
- Loading branch information