Skip to content

Commit

Permalink
Explain how to add own logger (#6083)
Browse files Browse the repository at this point in the history
* Explain how to add own logger

* Avoid phpstan groan

* revert
  • Loading branch information
weitzman authored Aug 3, 2024
1 parent c010db3 commit 8634b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/DrushCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function io(): DrushStyle
*/
public function logger(): ?DrushLoggerManager
{
assert(is_null($this->logger) || $this->logger instanceof DrushLoggerManager);
assert(is_null($this->logger) || $this->logger instanceof DrushLoggerManager, 'Instead of using replacing Drush\'s logger, use $this->add() on DrushLoggerManager to add a custom logger. See https://github.com/drush-ops/drush/pull/5022');
return $this->logger;
}

Expand Down

0 comments on commit 8634b65

Please sign in to comment.