Action_Logger::use_log( string $log_identifier, bool $create = false )

Changes the Monolog logger channel to the specified one.


Parameters

$log_identifier

(string) (Required) The channel to switch to.

$create

(bool) (Optional) Unused by this class.

Default value: false


Top ↑

Return

(bool) The exit status of the channel change.


Top ↑

Source

File: src/Tribe/Log/Action_Logger.php

	public function use_log( $log_identifier, $create = false ) {
		return tribe( 'monolog' )->set_global_channel( $log_identifier );
	}

Top ↑

Changelog

Changelog
Version Description
4.9.16 Introduced.