LogChannel
in package
implements
NotificationChannelInterface
FinalYes
Routes a notification through the configured LoggerInterface. The logger method is chosen from the notification severity.
Table of Contents
Interfaces
- NotificationChannelInterface
- A delivery mechanism for notifications. Implementations should swallow transient delivery errors rather than propagating them; the pipeline must not crash because Slack is down.
Methods
- __construct() : mixed
- name() : string
- Stable identifier for routing or filtering (e.g., "slack", "email", "log").
- send() : void
Methods
__construct()
public
__construct(LoggerInterface $logger[, string $name = 'log' ]) : mixed
Parameters
- $logger : LoggerInterface
- $name : string = 'log'
name()
Stable identifier for routing or filtering (e.g., "slack", "email", "log").
public
name() : string
Attributes
- #[Override]
Return values
stringsend()
public
send(Notification $notification) : void
Parameters
- $notification : Notification
Attributes
- #[Override]