log debug message
@param $message
@param null $object optional: reference an object which is important to understand the log entry
429774
public function logDebug($message, $object = null)
    {
        $this->doLog(LogHelper::LOG_LEVEL_DEBUG, $message, $object);
    }
834328
public void debug(Object message, Throwable t) {
        logger.debug(String.valueOf(message), t);
    }
208550
public function debugLog($message)
  {
    if($this->DebugAddTime){
      // adding datetime to message (useful when DebugMethod=='echoplain')
      if($this->DebugMultiLine){
        // multiline is enabled, so add the time for each line in the $message
        $message_changed='';
        foreach(explode("\n",$message) as $sub_msg){
          if($message_changed!==''){
            // only add a newline for each newline we lost due to the explode
            $message_changed.="\n";
          }
          $message_changed.=date("Y-m-d H:i:s ").$sub_msg;
        }
        $message=$message_changed;
      }else{
        $message=date("Y-m-d H:i:s ").$message;
      }
    }
    if($this->DebugMethod=='error_log'){
      // error_log entries are automatically truncated at ~8130 chars.
      // by default the message is displayed as one single line where newlines are replaced by literal \n
      // in fact, all non ascii characters are replaced by escaped values (often \xnn)
      // we support two config settings to change this behaviour: error_log_multiline, error_log_wrap
      // both are enabled by default
      if($this->DebugMultiLine){
        foreach(explode("\n",$message) as $sub_msg){
          if($this->ManagerConfig['error_log_wrap']){
            self::error_log_wrap($sub_msg);
          }else{
            error_log($sub_msg);
          }
        }
      }else{
        if($this->ManagerConfig['error_log_wrap']){
          self::error_log_wrap($message);
        }else{
          error_log($message);
        }
      }
    } else if($this->DebugMethod=='echoplain'){
      echo $message."\n";
    }else{
      echo $message."<br />\n";
    }
  }
1258961
public function logWarning($message, $object = null)
    {
        $this->doLog(LogHelper::LOG_LEVEL_WARNING, $message, $object);
    }
999914
private function debug($message)
    {
        if (1 < func_num_args()) {
            $message = call_user_func_array('sprintf', func_get_args());
        }
        $this->logger->addDebug($message);
    }
1313031
public function debug( $object , $category , $message )
	{
		return $this->message( self::getMessagePrefix( $object , $category , 'debug' ) . $message , self::LEVEL_DEBUG );
	}
323261
public function logAssertValidated($message, $object = null)
    {
        $this->doLog(LogHelper::LOG_LEVEL_ASSERT_VALIDATED, $message, $object);
    }
862719
public void debug(Object message, Throwable t)
    {
        getLogger().debug(message.toString(), t);
    }
171433
public function log($producer, $msg, $object = false) {
        if(!($this->acceptedProducers & $producer)) { return; }

        $msgFmt = self::format($msg, $this->processId, $this->time, $this->flags);
        if($object) {
            $msgFmt .= " " . json_encode($object);
        }
        $this->logRaw($msgFmt);
    }
495190
private static function debugStart($message)
    {
        // SWATDB_DEBUG is legacy, use SwatDB::setDebug() instead
        if (defined('SWATDB_DEBUG') || self::$debug) {
            $trace = debug_backtrace();

            // get first trace line that is not in the SwatDB package
            foreach ($trace as $entry) {
                if (
                    !array_key_exists('class', $entry) ||
                    strncmp($entry['class'], 'SwatDB', 6) !== 0
                ) {
                    break;
                }
            }

            $class = array_key_exists('class', $entry) ? $entry['class'] : null;

            $function = array_key_exists('function', $entry)
                ? $entry['function']
                : null;

            ob_start();
            printf(
                "<strong>%s%s%s()</strong><br />\n",
                $class === null ? '' : $class,
                array_key_exists('type', $entry) ? $entry['type'] : '',
                $function === null ? '' : $function
            );

            echo $message;
            $debug_message = ob_get_clean();

            $debug_info = array();
            $debug_info['message'] = $debug_message;
            $debug_info['time'] = microtime(true) * 1000;
            $debug_info['depth'] = self::$debug_wrapper_depth;
            $debug_info['count'] = self::$query_count;
            self::$debug_info[] = $debug_info;

            self::$debug_wrapper_depth++;
        }
    }
1133923
public function logDebug($message, $attachment = null) {
        error_log($message . print_r($attachment, true), $this->messageType , $this->destination);
    }
1072844
public function debug($message)
    {
        if ( ! $this->getOutput()->isDebug()) {
            return null;
        }

        if (func_num_args() > 1) {
            $message = vsprintf($message, array_slice(func_get_args(), 1));
        }

        $this->getOutput()->writeln($message);
    }
889152
public function addDebug($message, array $context = array())
    {
        return $this->_instance->addRecord(\Monolog\Logger::DEBUG, $message, $context);
    }
149431
function log(message, context) {
        if (defaults.debug) {
            console.log((typeof context === 'object') ? compile(message, context) : message)
        }
    }
951322
@Override
    public void debug(Object object, Object... objects) {
        if (isDebugEnabled()) {
            StringBuilder result = new StringBuilder();
            result.append(object.toString());
            for (Object obj : objects) {
                if (obj == null) {
                    result.append("null");
                } else {
                    result.append(obj.toString());
                }
            }
            debugString(result.toString());
        }
    }
959116
public function debug($message = true, array $context = [])
    {
        // using this to switch on/off the debug for this object
        if (is_bool($message)) {
            $this->debug = $message;

            return $this;
        }

        // if debug is enabled, then log it
        if ($this->debug) {
            if (!isset($this->app) || !isset($this->app->logger) || !$this->app->logger instanceof \Psr\Log\LoggerInterface) {
                $message = '['.get_class($this).']: '.$message;
            }
            $this->log(LogLevel::DEBUG, $message, $context);
        }

        return $this;
    }
863674
public function debug($message, string $category = 'application'): void
    {
        $this->log(LogLevel::DEBUG, $message, $category);
    }