public function PurgeLoggerAwareTrait::logger in Purge 8.3
File
- src/
Logger/ PurgeLoggerAwareTrait.php, line 23
Class
- PurgeLoggerAwareTrait
- Provides logging services for purge components.
Namespace
Drupal\purge\LoggerCode
public function logger() {
if (is_null($this->logger)) {
throw new \LogicException('Logger unavailable, call ::setLogger().');
}
return $this->logger;
}