Capture a debug issue relating to Eyewitness.

@param  string  $message
@param  string|null  $data
@return void
337787
public function debug($message, $data = null)
    {
        if (config('eyewitness.debug', false)) {
            Log::debug('Eyewitness: '.$message, ['data' => $data]);
        }
    }
512954
public function info($msg, $data = NULL) {
        if (!$this->isAllowToLog(static::LOG_LEVEL_INFO)) {
            return;
        }

        $this->log('info', $msg, $data);
    }
1028905
public function error($message, $data = null, $code = 404) {
		$this->_status = static::STATUS_FAIL;
		$this->_message = $message;
		$this->_data = !$data && $data !== false ? null : $data;
		$this->_code = $code;
	}
810019
public static function debug(...$messages): void
    {
        static::init();

        if (!static::isTemporaryDisabled('debug')) {
            foreach (static::$adapters as $adapter) {
                /* @var $adapter \Koldy\Log\Adapter\AbstractLogAdapter */
                if ($adapter->isLevelEnabled(self::DEBUG)) {
                    $adapter->debug((new Message(self::DEBUG))->setMessages($messages));
                }
            }
        }
    }
719313
public function record(EventMessage $message): void
    {
        $eventRecord = new EventRecord(
            $message,
            $this->aggregateId,
            $this->aggregateType,
            $this->nextSequence()
        );
        $this->lastSequence = $eventRecord->sequenceNumber();
        $this->eventRecords->add($eventRecord);
    }
1127183
public function messageToSession ($message, $isRaw = false, $canHide = true)
		{
			$this->toSession($message, Notification::MESSAGE, $isRaw, $canHide);
		}
428200
public function error($message = "", $data = null)
    {
        return $this->response([
            'success' => false,
            'errors' => [
                'message' => $message,
                'status_code' => $this->getStatusCode(),
            ],
            'data' => $data,
        ]);
    }
513462
protected function dispatchSentEvent($message, $data = [])
    {
        if ($this->events) {
            $this->events->dispatch(
                new Events\MessageSent($message->getSwiftMessage(), $data)
            );
        }
    }
164390
public function log(string $name, string $message, array $data = []): void
    {
        $filename = $this->dir . '/' . $name . '-' . date('Y-m-d') . '.log';
        try {
            $microtime = microtime(true);
            $microtimeParts = explode('.', $microtime);
            $logData = date('H:i:s', $microtime) . ':' . (isset($microtimeParts[1]) ? $microtimeParts[1] : '0') . "\n" . trim($message) . (empty($data) ? '' : "\n" . trim(print_r($data, true))) . "\n\n";
            $fileHandler = fopen($filename, 'ab');
            fwrite($fileHandler, $logData);
            fclose($fileHandler);
        } catch (\Exception $e) {
            throw new \Exception('Cannot write log file (' . $filename . ')');
        }
    }
1133923
public function logDebug($message, $attachment = null) {
        error_log($message . print_r($attachment, true), $this->messageType , $this->destination);
    }
177561
public static function text($message, $data = null)
    {
        if (!static::$on) {
            return;
        }

        echo "--------------------------------------------------------------------------------\n";
        static::indent();
        echo static::getTime() . " - " . $message . "\n";
        if (is_array($data)) {
            print_r($data);
        } elseif ($data) {
            static::indent();
            echo "    " . $data . "\n";
        }
    }
751468
protected function logDebug($message, array $context = [])
    {
        $this->hasLogger() === true ?: $this->logger->debug($message, $context);
    }
854792
protected function debug($message, $args = array()) {
    if ($this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) {
        /** @noinspection HtmlUnknownTag */
        $this->output->writeln('<fg=green>'.sprintf($message, $args));
        }
    }
936435
public function log($level, $message, array $data = [])
    {
        $this->getLogger()->log($level, $message, $data);
        $this->debugWriter->write($level, $message, $data);
    }
1008115
protected function log($message): void
    {
        if ($this->logger !== null) {
            $this->logger->log($message);
        }
    }
1170916
public function debug($message = '', $context = [], $role = 'system', $times = 0, $ttl = 0)
    {
        if ($this->isSingle()) {
            $this->log($message, $context, Logger::DEBUG, $role, $times, $ttl);
        }
    }
978380
public function debug($message = "%s seconds")
    {
        $this->logger->debug(sprintf($message, $this->currentProfile->getDuration()));
    }