Action_Logger::use_log( string $log_identifier, bool $create = false )
Changes the Monolog logger channel to the specified one.
Contents
Parameters
- $log_identifier
-
(string) (Required) The channel to switch to.
- $create
-
(bool) (Optional) Unused by this class.
Default value: false
Return
(bool) The exit status of the channel change.
Source
File: src/Tribe/Log/Action_Logger.php
public function use_log( $log_identifier, $create = false ) { return tribe( 'monolog' )->set_global_channel( $log_identifier ); }
Changelog
Version | Description |
---|---|
4.9.16 | Introduced. |