Detailed debug information.

@param string $message
@param array $context

@return null
353724
public function debug($message, array $context = []) {
        $this->logger->debug($this->prefixMessage($message), $context);
    }
857021
public function alert($message, array $context = [])
    {
        $this->checkInitialized();

        foreach ($this->loggers as $logger) {
            $logger->alert($message, $context);
        }
    }
1179027
public function log($level, $message, array $context = array())
    {
        if($this->debugMode)
        {
            $ct = microtime(true);
            $dt = self::$lastLog>0?($ct - self::$lastLog):0;
            $time = number_format( $ct - Bootstrap::getSingleton()->getStartTime(), 5 );
            $dt = number_format($dt, 5);
//            error_log("[$time][-$dt][$level]\t" . (is_string($message)?$message:implode(", ", $message)));
            self::$lastLog = $ct;
        }
        // TODO: Implement log() method.
        if (!in_array('events', $context)) {
            Events::dispatch('onLog', array($message, $level));
        }
//        else {
//            if ($this->debugMode) {
//                echo '<pre>';
//                echo($level . ' ' . $message . "\n");
//                debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
//                echo '</pre>';
//                die();
//            }
//        }
    }
113694
public function debug($value, array $context = array())
	{
		// If we were given anything other than a string,
		// we'll get readable format of the value.
		if( ! is_string($value))
		{
			$value = print_r($value, true);
		}

		$this->log(LogLevel::DEBUG, $value, $context);
	}
249729
protected function debug($message)
    {
        if (($len = strlen($message)) > self::DEBUG_LINE_LENGTH) {
            $diff    = $len - self::DEBUG_LINE_LENGTH;
            $message = substr($message, 0, self::DEBUG_LINE_LENGTH)
                . "... [truncated $diff bytes]";
        }

        if ($this->resourceid) {
            $message = sprintf('[%s] %s', $this->resourceid, $message);
        }

        if ($this->debug_handler) {
            call_user_func_array($this->debug_handler, array(&$this, $message));
        }
        else {
            echo "DEBUG: $message\n";
        }
    }
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";
            }
        }
    }
433274
public function notice($message, array $context = array()) {
        $context['fromClass'] = get_called_class();
        foreach ($this->loggersInstances as $logger) {
            $logger->notice($message, $context);
        }
    }
1086917
public function log($level, $message, array $context = array()) {
		$stacktrace = debug_backtrace($this->debugbacktraceArgs);
		$context[$this->contextKey] = json_decode(json_encode($stacktrace), true);
		$this->logger()->log($level, $message, $context);
	}
204645
public function info($message, array $context = array())
    {
        // TODO: Implement info() method.
        return $this->addRecord(\Psr\Log\LogLevel::INFO, $message, $context);
    }
529225
public function log($level, $message, array $context = [])
    {
        $severity = $this->getSeverity($level);

        if ($message instanceof Exception) {
            $this->bugsnag->notifyException($message, array_except($context, ['title']), $severity);
        } else {
            $msg = $this->formatMessage($message);
            $title = array_get($context, 'title', str_limit((string) $msg));
            $this->bugsnag->notifyError($title, $msg, array_except($context, ['title']), $severity);
        }
    }
671527
public function debug($message)
    {
        $config = ConfigManager::getInstance()->getConfigHashmap();
        // Disable debug in live mode.
        if (array_key_exists('mode', $config) && $config['mode'] != 'live') {
            $this->logger->debug($message);
        }
    }
300241
public function emergency($message, array $context = array())
    {
        try
        {
            return $this->logger->emergency($message, $context);
        }
        catch (Error $ex)
        {}
        catch (Exception $ex)
        {}

        throw new WriteException("Record with debug level could not be logged.", 0, $ex);
    }
252916
public function alert($message, array $context = array())
    {
        // TODO: Implement alert() method.
        return $this->addRecord(\Psr\Log\LogLevel::ALERT, $message, $context);
    }
947455
public static function log($level, $message, array $context = array())
    {
        App::getBean('Logger')->log($level, $message, static::parseContext($context));
    }
682516
private function debugLog($message)
    {
        $this->debug_log_handler !== null && is_callable($this->debug_log_handler) && call_user_func($this->debug_log_handler, $message);
    }
489906
public function addInfo($message, array $context = array())
    {
        return $this->_instance->addRecord(\Monolog\Logger::INFO, $message, $context);
    }
466966
public function debug($message, $args=array())
    {
        $backtrace        = debug_backtrace();
        $args['FILENAME'] = $backtrace[0]['file'];
        $args['LINENO']   = $backtrace[0]['line'];
        $this->log($message, $args, 'LOG_DEBUG');

    }