You are here

public function LoggerChannelPartFactoryInterface::create in Purge 8.3

Create a channel part instance.

Parameters

string $id: The identifier of the channel part.

int[] $grants: Unassociative array of RFC 5424 log types. Each passed type grants the channel permission to log that type of message, without specific permissions the logger will stay silent for that type.

Grants available:

Return value

\Drupal\purge\Logger\LoggerChannelPartInterface The channel part instance.

1 method overrides LoggerChannelPartFactoryInterface::create()
LoggerChannelPartFactory::create in src/Logger/LoggerChannelPartFactory.php
Create a channel part instance.

File

src/Logger/LoggerChannelPartFactoryInterface.php, line 36

Class

LoggerChannelPartFactoryInterface
Describes a factory that creates LoggerChannelPartInterface instances.

Namespace

Drupal\purge\Logger

Code

public function create($id, array $grants = []);