public function htmlDetails(
        $type,
        $level,
        $class,
        $file,
        $line,
        $message,
        $trace,
        $offset)
    {
        $history = array();
        for(; isset($trace[$offset]); $offset++) {
            $row = $trace[$offset];

            //lets formulate the method
            $method = $row['function'].'()';
            if(isset($row['class'])) {
                $method = $row['class'].'->'.$method;
            }

            $rowLine = isset($row['line']) ? $row['line'] : 'N/A';
            $rowFile = isset($row['file']) ? $row['file'] : 'Virtual Call';

            //add to history
            $history[] = sprintf('%s File: %s Line: %s', $method, $rowFile, $rowLine);
        }

        $message = sprintf(
            '%s %s: "%s" from %s in %s on line %s',
            $type,         $level,     $message,
            $class,     $file,         $line);

        return implode("<br />", array(
            '<h4>'.$message.'</h4>',
            implode("<br />", $history)
        ));
    }