PluginProbe
Borderless – Addons and Templates for Elementor / 1.6.1
Borderless – Addons and Templates for Elementor v1.6.1
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 All 78 releases
borderless / includes / library / inc / Logger.php

Logger.php in Borderless – Addons and Templates for Elementor 1.6.1, at includes/library/inc/Logger.php

37 lines 731 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace LIBRARY;
4
5 class Logger extends \AwesomeMotive\WPContentImporter2\WPImporterLoggerCLI {
6
7 public $error_output = '';
8
9 public function log( $level, $message, array $context = array() ) {
10
11 $this->error_output( $level, $message, $context = array() );
12
13 if ( $this->level_to_numeric( $level ) < $this->level_to_numeric( $this->min_level ) ) {
14 return;
15 }
16
17 printf(
18 '[%s] %s' . PHP_EOL,
19 strtoupper( $level ),
20 $message
21 );
22 }
23
24
25 public function error_output( $level, $message, array $context = array() ) {
26 if ( $this->level_to_numeric( $level ) < $this->level_to_numeric( 'error' ) ) {
27 return;
28 }
29
30 $this->error_output .= sprintf(
31 '[%s] %s<br>',
32 strtoupper( $level ),
33 $message
34 );
35 }
36 }
37