Tribe__Log::get_level()

Returns the current logging level as a string.


Return

(string)


Top ↑

Source

File: src/Tribe/Log.php

	public function get_level() {
		$current_level = tribe_get_option( 'logging_level', null );
		$available_levels = wp_list_pluck( $this->get_logging_levels(), 0 );

		if ( ! in_array( $current_level, $available_levels ) ) {
			$current_level = self::DISABLE;
		}

		return $current_level;
	}