apply_filters( "{$this->prefix}set_logger", Psr\Log\LoggerInterface|null )

Filters initializing the plugin’s logger instance.

Description

An implementation of Psr\Log\LoggerInterface may be returned to use that instead of the regular logger, which simply uses the typical PHP error handler controlled by WordPress.

Parameters

(Psr\Log\LoggerInterface|null) (Optional) Logger instance to use, or null to not override (default).

Changelog

Changelog
Version Description
1.0.0 Introduced.