PluginProbe
Elementor Website Builder – more than just a page builder / 3.16.0-dev1
Elementor Website Builder – more than just a page builder v3.16.0-dev1
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / core / logger / loggers / logger-interface.php

logger-interface.php in Elementor Website Builder – more than just a page builder 3.16.0-dev1, at core/logger/loggers/logger-interface.php

65 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }
65