balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

logger-interface.php (1268B)


      1 <?php
      2 namespace Elementor\Core\Logger\Loggers;
      3 
      4 if ( ! defined( 'ABSPATH' ) ) {
      5 	exit; // Exit if accessed directly
      6 }
      7 
      8 interface Logger_Interface {
      9 	const LEVEL_INFO = 'info';
     10 	const LEVEL_NOTICE = 'notice';
     11 	const LEVEL_WARNING = 'warning';
     12 	const LEVEL_ERROR = 'error';
     13 	const LOG_NAME = 'elementor_log';
     14 
     15 	/**
     16 	 * @param string $message
     17 	 * @param string $type
     18 	 * @param array  $meta
     19 	 *
     20 	 * @return void
     21 	 */
     22 	public function log( $message, $type = self::LEVEL_INFO, $meta = [] );
     23 
     24 	/**
     25 	 * @param string $message
     26 	 * @param array $meta
     27 	 *
     28 	 * @return void
     29 	 */
     30 	public function info( $message, $meta = [] );
     31 
     32 	/**
     33 	 * @param string $message
     34 	 * @param array $meta
     35 	 *
     36 	 * @return void
     37 	 */
     38 	public function notice( $message, $meta = [] );
     39 
     40 	/**
     41 	 * @param string $message
     42 	 * @param array $meta
     43 	 *
     44 	 * @return void
     45 	 */
     46 	public function warning( $message, $meta = [] );
     47 
     48 	/**
     49 	 * @param string $message
     50 	 * @param array $meta
     51 	 *
     52 	 * @return void
     53 	 */
     54 	public function error( $message, $meta = [] );
     55 
     56 	/**
     57 	 * @param int $max_entries
     58 	 * @param bool $table use <td> in format
     59 	 *
     60 	 * @return array [ 'key' => [ 'total_count' => int, 'count' => int, 'entries' => Log_Item[] ] ]
     61 	 */
     62 	public function get_formatted_log_entries( $max_entries, $table = true );
     63 
     64 }