Sends/Writes a debug message to the log

@param string|array $message
@param string       $category

@return static
514310
public function debug($message, $category = null)
    {
        return $this->log(self::LEVEL_DEBUG, $message, $category);
    }
533339
public static function debug($message, $context = [], $channel = 'tastphp.logger')
    {

        $logger = static::getLoggerByLevelAndChannel(Monolog::DEBUG, $channel);
        $logger->addDebug($message, $context);
    }
393016
protected function log(/*# string */ $level, /*# string */ $message)
    {
        if ($this->debug_mode) {
            $this->debugger->log(
                $level,
                $message,
                [ 'className' => get_class($this) ]
            );
        }
        return $this;
    }
598416
public function write($level, $message, $log_category = null, $options = array())
    {
        $default_option                  = [];
        $default_option['log_request']   = $this->_configRead('log_request');
        $default_option['log_post_data'] = $this->_configRead('log_post_data');
        $default_option['log_cookies']   = $this->_configRead('log_cookies');
        $default_option['log_session']   = $this->_configRead('log_session');
        $default_option['log_headers']   = $this->_configRead('log_headers');

        $options = array_merge($default_option, $options);

        $options['log_category']  = $log_category;

        return AlaxosLog::write($level, $message, $options);
    }
614788
private function logMessage(Message $message)
    {
        $logMessage = \sprintf(
            '%s %s (%.3Fs)',
            $message->getRequest()->getMethod(),
            (string) $message->getRequest()->getUri(),
            $message->getDuration()
        );

        // This is a "simple" log, for general purpose
        $this->logger->log(
            $message->getLogLevel(),
            $logMessage
        );

        // This is a debug log, with all message details, useful for debugging
        $this->logger->debug($logMessage, $message->jsonSerialize());
    }
558693
public function error($message, $category = null)
    {
        return $this->log(self::LEVEL_ERROR, $message, $category);
    }
1232101
public function info( $object , $category , $message )
	{
		return $this->message( self::getMessagePrefix( $object , $category , 'info' ) . $message , self::LEVEL_INFO );
	}
751468
protected function logDebug($message, array $context = [])
    {
        $this->hasLogger() === true ?: $this->logger->debug($message, $context);
    }
1276640
public function debug($message, array $context = array()) {
        $context['fromClass'] = get_called_class();
        foreach ($this->loggersInstances as $logger) {
            $logger->debug($message, $context);
        }
    }
429774
public function logDebug($message, $object = null)
    {
        $this->doLog(LogHelper::LOG_LEVEL_DEBUG, $message, $object);
    }
227478
public function beginDebug(string $message, array $context = []) {
        return $this->begin(LogLevel::DEBUG, $message, $context);
    }
1017758
public function category($category)
    {
        $categoryId = NotificationCategory::getIdByCategory($category);
        $this->setNotificationData('category_id', $categoryId);

        return $this;
    }
369252
public static function trace($message, $category = 'application')
    {
        if (YII_DEBUG) {
            static::getLogger()->log($message, Logger::LEVEL_TRACE, $category);
        }
    }
854792
protected function debug($message, $args = array()) {
    if ($this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) {
        /** @noinspection HtmlUnknownTag */
        $this->output->writeln('<fg=green>'.sprintf($message, $args));
        }
    }
128478
public function publishCategoryArticles(CategoryArticlePublishMessage $message): Category
    {
        $path = sprintf('sites/%d/categories/%d/publish_articles', $message->getSiteId(), $message->getCategoryId());
        $data = ['api_publish_articles' => $message->build()];

        $response = $this->getClient()->sendRequest(RequestStatus::POST, $path, $data);

        /** @var Category $model */
        $model = $this->getModelFactory()->create(Category::class, $response);

        return $model;
    }
1139079
public function debug($message): void
	{
		$message = $this->logMessToArray($message);
		$this->log(array_merge(['SEVERITY' => 'DEBUG'], $message));
	}
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;
    }