| Server IP : 104.21.28.229 / Your IP : 216.73.216.142 Web Server : Apache/2 System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mienphi ( 1014) PHP Version : 8.2.14 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mienphi/public_html/wp-content/plugins/loco-translate/src/error/ |
Upload File : |
<?php
/**
* Developer notice
*/
class Loco_error_Debug extends Loco_error_Exception {
/**
* {@inheritdoc}
*/
public function getType(){
return 'debug';
}
/**
* {@inheritdoc}
*/
public function getTitle(){
return __('Debug','loco-translate');
}
/**
* {@inheritdoc}
*/
public function getLevel(){
return Loco_error_Exception::LEVEL_DEBUG;
}
/**
* {@inheritDoc}
*/
public function logCli(){
WP_CLI::debug( $this->getMessage(), 'loco' );
}
/**
* Log debugging message to file without raising admin notice
* @codeCoverageIgnore
*/
public static function trace( ...$args ){
$message = array_shift($args);
if( $args ){
$message = vsprintf($message,$args);
}
$debug = new Loco_error_Debug($message);
$debug->setCallee(1);
$debug->log();
}
}