public function LoggerServiceInterface::get in Purge 8.3
Retrieve a channel part instance.
This creates a 'channel part' logger object compliant to the widely used \Psr\Log\LoggerInterface difference, with the difference that messages are funneled through a single channel and severities can be configured. Newly requested IDs will be automatically registered through ::setChannel().
Parameters
string $id: The identifier of the channel part.
Return value
\Drupal\purge\Logger\LoggerChannelPartInterface The channel part instance.
Throws
\LogicException Thrown when the given id is empty or otherwise invalid.
1 method overrides LoggerServiceInterface::get()
- LoggerService::get in src/
Logger/ LoggerService.php - Retrieve a channel part instance.
File
- src/
Logger/ LoggerServiceInterface.php, line 46
Class
- LoggerServiceInterface
- Describes logging services to purge and its submodules, via a single channel.
Namespace
Drupal\purge\LoggerCode
public function get($id);