Server IP : 104.21.38.3 / Your IP : 172.70.208.168 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/resolue.in/boat/wp-content/plugins/one-click-demo-import/inc/ |
Upload File : |
<?php /** * Logger class used in the One Click Demo Import plugin * * @package ocdi */ namespace OCDI; class Logger extends \AwesomeMotive\WPContentImporter2\WPImporterLoggerCLI { /** * Variable for front-end error display. * * @var string */ public $error_output = ''; /** * Overwritten log function from WP_Importer_Logger_CLI. * * Logs with an arbitrary level. * * @param mixed $level level of reporting. * @param string $message log message. * @param array $context context to the log message. */ public function log( $level, $message, array $context = array() ) { // Save error messages for front-end display. $this->error_output( $level, $message, $context = array() ); if ( $this->level_to_numeric( $level ) < $this->level_to_numeric( $this->min_level ) ) { return; } printf( '[%s] %s' . PHP_EOL, strtoupper( $level ), $message ); } /** * Save messages for error output. * Only the messages greater then Error. * * @param mixed $level level of reporting. * @param string $message log message. * @param array $context context to the log message. */ public function error_output( $level, $message, array $context = array() ) { if ( $this->level_to_numeric( $level ) < $this->level_to_numeric( 'error' ) ) { return; } $this->error_output .= sprintf( '[%s] %s<br>', strtoupper( $level ), $message ); } }