0 && self::$oP) { self::$oP->p('cron'.str_pad(static::$iProcessNumber, 3).$sMessage); } parent::Debug($sMessage, $sChannel, $aContext); } public static function Trace($sMessage, $sChannel = null, $aContext = []): void { if (self::$iDebugLevel > 1 && self::$oP) { self::$oP->p('cron'.str_pad(static::$iProcessNumber, 3).$sMessage); } parent::Trace($sMessage, $sChannel, $aContext); } public static function SetDebug(Page $oP, int $iDebugLevel): void { self::$oP = $oP; self::$iDebugLevel = $iDebugLevel; } public static function GetDebugClassName($sTaskClass): string { if (utils::StartsWith($sTaskClass, 'Combodo\\iTop\\Service\\')) { return substr($sTaskClass, strlen('Combodo\\iTop\\Service\\')); } if (utils::StartsWith($sTaskClass, 'Combodo\\iTop\\')) { return substr($sTaskClass, strlen('Combodo\\iTop\\')); } return $sTaskClass; } }