### Eclipse Workspace Patch 1.0
#P ModelGlue SVN
|
|
|
|
| 2 | 2 | |
| 3 | 3 | <cffunction name="renderLog" output="false" hint="Returns an HTML representation of the request log."> |
| 4 | 4 | <cfargument name="eventContext" hint="The EventContext who's log should be rendered." /> |
| 5 | | |
| | 5 | |
| 6 | 6 | <cfset var trace = arguments.eventContext.getTrace() /> |
| 7 | 7 | <cfset var out = "" /> |
| 8 | 8 | <cfset var i = "" /> |
| … |
… |
|
| 17 | 17 | |
| 18 | 18 | <cfset colors.warning = "##f4cb9a" /> |
| 19 | 19 | <cfset colors.trace = "##b5e1e1" /> |
| 20 | | |
| | 20 | |
| 21 | 21 | <!--- Shortcut to bypass. Man, why did I ever do it like this? ---> |
| 22 | 22 | <cfif structKeyExists(request, "modelGlueSuppressDebugging") AND request.modelGlueSuppressDebugging IS true> |
| 23 | 23 | <cfreturn "" /> |
| 24 | 24 | </cfif> |
| 25 | | |
| | 25 | |
| 26 | 26 | <cfoutput> |
| 27 | 27 | <cfsavecontent variable="out"> |
| 28 | 28 | <div clear="both"> |
| 29 | 29 | <h1>Model-Glue Debugging</h1> |
| 30 | | |
| | 30 | |
| 31 | 31 | <table cellpadding="2" cellspacing="2" width="100%" style="border:1px Solid ##CCC;font-family:verdana;font-size:11pt;"> |
| 32 | 32 | <thead> |
| 33 | 33 | <tr style="background:##EAEAEA"> |
| … |
… |
|
| 45 | 45 | <cfset eventTime = trace[i].time - initialTime /> |
| 46 | 46 | </cfif> |
| 47 | 47 | |
| 48 | | <cfif mode eq "verbose" or (mode eq "trace" and trace[i].type eq "USER")> |
| 49 | | <cfif trace[i].type eq "WARNING"> |
| | 48 | <cfif mode eq "verbose" or (mode eq "trace" and trace[i].traceType eq "USER")> |
| | 49 | <cfif trace[i].traceType eq "WARNING"> |
| 50 | 50 | <tr style="background:#colors.warning#" valign="top"> |
| 51 | | <cfelseif trace[i].type eq "USER"> |
| | 51 | <cfelseif trace[i].traceType eq "USER"> |
| 52 | 52 | <tr style="background:#colors.trace#" valign="top"> |
| 53 | 53 | <cfelseif not displayedRowCount mod 2> |
| 54 | 54 | <tr style="background:##F9F9F9" valign="top"> |
| … |
… |
|
| 59 | 59 | <td valign="top" nowrap="true">#trace[i].type#</td> |
| 60 | 60 | <td valign="top">#trace[i].message#</td> |
| 61 | 61 | </tr> |
| 62 | | <cfif trace[i].type eq "WARNING"> |
| | 62 | <cfif trace[i].traceType eq "WARNING"> |
| 63 | 63 | <tr style="background:#colors.warning#" valign="top"> |
| 64 | | <cfelseif trace[i].type eq "USER"> |
| | 64 | <cfelseif trace[i].traceType eq "USER"> |
| 65 | 65 | <tr style="background:#colors.trace#" valign="top"> |
| 66 | 66 | <cfelseif not displayedRowCount mod 2> |
| 67 | 67 | <tr style="background:##F9F9F9" valign="top"> |
| … |
… |
|
| 79 | 79 | </div> |
| 80 | 80 | </cfsavecontent> |
| 81 | 81 | </cfoutput> |
| 82 | | |
| | 82 | |
| 83 | 83 | <cfreturn out /> |
| 84 | 84 | </cffunction> |
| 85 | 85 | |
| | 86 | |
| 86 | 87 | </cfcomponent> |
| | 88 | No newline at end of file |