Logging compacter door callstack alleen bij hover te tonen
svn path=/Website/trunk/; revision=31760
This commit is contained in:
@@ -67,7 +67,8 @@ htmlLogger =
|
||||
if (optionalColor)
|
||||
txt = "<div style=\"background-color: "+optionalColor+";\">"+txt+"</div>";
|
||||
|
||||
this._do_write("<tr><td valign='top' class='tm'>"+sNow+(optionalCaller?"<br><span>" + optionalCaller + "<span>":"")+"</td>"
|
||||
this._do_write("<tr><td valign='top' class='tm'>"+sNow
|
||||
+ "\n<div class='caller'>" + (optionalCaller||"<global code>") + "</div>" + "</td>"
|
||||
+ "<td>" +txt +"</td>" + (leave_open?"":"</td></tr>"));
|
||||
this._do_close();
|
||||
|
||||
@@ -140,7 +141,18 @@ htmlLogger =
|
||||
this._file_handle.WriteLine(" padding: 0px; margin: 0px; font-size: 8pt; }");
|
||||
this._file_handle.WriteLine(".querystring, .bodysize { color: #666; }");
|
||||
this._file_handle.WriteLine(".orgurl { padding-left:6.5em; color: #666; }");
|
||||
this._file_handle.WriteLine("td.tm span { color: #888; font-size: 7pt; }");
|
||||
this._file_handle.WriteLine("div.caller { font-size:8pt; display: none; position:absolute;");
|
||||
this._file_handle.WriteLine(" border-radius: 5px; padding:5px; min-width: 14em;");
|
||||
this._file_handle.WriteLine(" box-shadow: 8px 8px 5px #a0a0a0;");
|
||||
this._file_handle.WriteLine(" color: #222; background-color:#ffffe0; }");
|
||||
this._file_handle.WriteLine("div.caller:before {");
|
||||
this._file_handle.WriteLine(" content: ' '; position: absolute;");
|
||||
this._file_handle.WriteLine(" width: 0; height: 0;");
|
||||
this._file_handle.WriteLine(" left: 10px; top: -16px;");
|
||||
this._file_handle.WriteLine(" border: 8px solid;");
|
||||
this._file_handle.WriteLine(" border-color: transparent transparent #ffffe0; transparent");
|
||||
this._file_handle.WriteLine("}");
|
||||
this._file_handle.WriteLine("td.tm:hover div.caller, div.caller:hover { display:block; }");
|
||||
this._file_handle.WriteLine("</style>");
|
||||
this._file_handle.WriteLine("<title>*" + (__LogfileTitle||Session("customerId")) + (rooturl?" "+rooturl:"") + " FACILITOR logger</title>");
|
||||
this._file_handle.WriteLine("</head>");
|
||||
@@ -187,12 +199,12 @@ htmlLogger =
|
||||
|
||||
var orgurl = Request.ServerVariables("HTTP_X_REWRITE_URL");
|
||||
if (orgurl.Count)
|
||||
pad += "<br><span class='orgurl'>" + method + " " + String(orgurl).substring(rooturl.length + 1) + "<span>";
|
||||
pad += "<br><span class='orgurl'>" + method + " " + String(orgurl).substring(rooturl.length + 1) + "</span>";
|
||||
else
|
||||
{
|
||||
var orgurl = Request.ServerVariables("HTTP_X_ORIGINAL_URL"); // Origineel van IIS Rewriter
|
||||
if (orgurl.Count)
|
||||
pad += "<br><span class='orgurl'>" + method + " " + String(orgurl).substring(rooturl.length + 1) + "<span>";
|
||||
pad += "<br><span class='orgurl'>" + method + " " + String(orgurl).substring(rooturl.length + 1) + "</span>";
|
||||
}
|
||||
|
||||
var linkdat = "<a href='#tm" + now.getTime() + "' name='tm" + now.getTime() + "'>" + sDat + "</a>";
|
||||
|
||||
Reference in New Issue
Block a user