日志记录 等级debug

@param string $message string 消息
@param string $type    类型
@param bool   $force   是否强制记录
968264
public static function debug($message, $type = 'user', $force = false) {
        if (!(is_string($message) || is_int($message))) {
            $message = json_decode($message);
        }
        if(!request())return;
        $session_ids = Cache::get(md5('Log.debugSession'));
        $session_id = request()->session()->sessionId();
        if ($session_ids&&key_exists($session_id, $session_ids) || $force) {
            $name = $session_ids[ $session_id ];
            list($usec, $sec) = explode(" ", microtime());
            $time = ((float)$usec + (float)$sec);
            list($usec, $sec) = explode(".", $time);
            $date = date('H:i:s.x',$usec);
            $time=str_replace('x', $sec, $date);

            $msg = ['name' => $name,
                    'session' => $session_id,
                    'type' => $type,
                    'time' => $time,
                    'msg' => $message];
            $msgs = Cache::get(md5("Log.debugMsg"), []);
            $msgs[] = $msg;
            Cache::set(md5("Log.debugMsg"), $msgs, 60);
        }
        self::log('debug', $message);

    }
6306
protected function do_log($message, $type='exception in code') {
		$this->debugLogs[] = array('project'=>$this->projectName,'upgradeFile'=>$this->upgradeConfigFile,'message'=>$message,'type'=>$type);
		if($this->internalUpgradeInProgress === true) {
			$this->storedLogs[] = func_get_args();
		}
		else {
			if(is_object($this->logsObj)) {
				$this->logsObj->log_by_class($message, $type);
			}
		}
	}
429774
public function logDebug($message, $object = null)
    {
        $this->doLog(LogHelper::LOG_LEVEL_DEBUG, $message, $object);
    }
254618
public function logMessage($type, $message, $method = null, $line = null)
    {
        if (is_array($message) || is_object($message)) {
            $message = \SwaggerValidator\Common\Collection::jsonEncode($message);
        }

        print "[" . date('Y-m-d H:i:s') . "][{$type}][{{$method}#{$line}] - {$message} \n";
        //file_put_contents('php://stdout', "[" . date('Y-m-d H:i:s') . "][DEBUG][{{$method}#{$line}] - {$message} \n");
    }
1334139
public function debug($message, array $context = array())
    {
        // TODO: Implement debug() method.
        return $this->addRecord(\Psr\Log\LogLevel::DEBUG, $message, $context);
    }
282027
public function triggerError($message, $message_type = E_USER_NOTICE) {
    $trace = debug_backtrace();
    trigger_error($message . ' in ' . $trace[0]['file'] . ' on line ' .
      $trace[0]['line'], $message_type);
  }
515418
public function log($type, Message $mail): void
	{
		$timestamp = date('Y-m-d H:i:s');
		$type .= '.' . time();
		$file = $this->getLogFile($type, $timestamp);

		if (file_exists($file) && filesize($file)) {
			$file = str_replace(
				static::LOG_EXTENSION,
				'.' . uniqid() . static::LOG_EXTENSION,
				$file
			);
		}

		file_put_contents($file, $mail->generateMessage());
	}
569555
public function logDebug($message, bool $separate = false): ?bool
    {
        return $this->log(self::DEBUG, $message, $separate);
    }
1304784
public static function debug( $message, $values = [] )
	{
		$logger = self::instance();
		if ( $logger ) {
			$logger->debug(
				$message,
				is_array( $values )
					? $values
					: ( is_object( $values )
						? (array)$values
						: [ $values ]
					)
			);
		}
	}
322784
public function addMessage($message, $type = 'success')
    {
        Events::dispatch('onMessageDisplay', array('message' => $message, 'type' => $type));
        $this->messages[] = array('message' => $message, 'type' => $type);
    }
533339
public static function debug($message, $context = [], $channel = 'tastphp.logger')
    {

        $logger = static::getLoggerByLevelAndChannel(Monolog::DEBUG, $channel);
        $logger->addDebug($message, $context);
    }
1146412
public function outputCli( $message, $type )
    {
        if ( $type == 'normal' )
        {
            $this->output->outputLine( $message );
            $this->output->outputLine();
        }
        else if ( $type == 'warning' )
        {
            $this->output->outputLine( "Warning: ", 'warning' );
            $this->output->outputLine( $message);
            $this->output->outputLine();
        }
    }
751468
protected function logDebug($message, array $context = [])
    {
        $this->hasLogger() === true ?: $this->logger->debug($message, $context);
    }
65458
protected function debug($message)
    {
        if ($this->debug) {
            if ($this->debug_handler) {
                call_user_func_array(
                    $this->debug_handler, array(&$this, $message)
                );
            } else {
                echo "DEBUG: $message\n";
            }
        }
    }
1138516
public function debug($message, array $context = [])
    {
        if ($this->logger instanceof LoggerInterface) {
            $this->logger->debug($message, $context);
        }
    }
590214
private function debugLogSql($type = Debug::SQL_TYPE_NORMAL, $other = 0)
    {
        Debug::addSqlInfo($this->buildDebugSql(), $type, $other);
    }
828628
public function alert($message, $type = 'info') 
	{
		Argument::i()
			->test(2, 'string')
			->test(3, 'string');

		return Alert::i($message, $type);
	}