⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logviewer.jsp

📁 jive3论坛开源 最新 有版主功能 jive3论坛开源 最新 有版主功能 jive3论坛开源 最新 有版主功能
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<style type="text/css">.log TABLE {    border : 1px #ccc solid;}.log TH {    font-family : verdana, arial;    font-weight : bold;    font-size : 0.7em;}.log TR TH {    background-color : #ddd;    border-bottom : 1px #ccc solid;    padding-left : 2px;    padding-right : 2px;    text-align : left;}.log .head-num {    border-right : 1px #ccc solid;}.log TD {    font-family : courier new;    font-size : 0.75em;    background-color : #ffe;}.log .num {    width : 1%;    background-color : #eee !important;    border-right : 1px #ccc solid;    padding-left : 2px;    padding-right : 2px;}.log .line {    padding-left : 10px;}.container {    border-width : 0px 1px 1px 1px;    border-color : #ccc;    border-style : solid;}.info TD {    font-family : verdana, arial;    font-size : 0.7em;}SELECT {    font-family : verdana, arial;    font-size : 0.8em;}.info .label {    padding-right : 6px;}.date {    color : #00f;    border-width : 0px 0px 1px 0px;    border-style : dotted;    border-color : #00f;}.new {    font-family : courier new;    font-weight : bold;    color : #600;}.hilite {    color : #900;}</style><form action="logviewer.jsp"><input type="hidden" name="log" value="<%= log %>"><table class="jive-tabs" cellpadding="0" cellspacing="0" border="0"><tr>    <td class="jive-tab-spacer" width="1%"><img src="images/blank.gif" width="5" height="1" border="0"></td>    <td class="jive-<%= (("error".equals(log))?"selected-":"") %>tab" width="1%" nowrap>        <a href="logviewer.jsp?log=error"        >Error</a>        <span class="new">        <%= ((newlogs.containsKey("error"))?"*":"") %>        </span>    </td>    <td class="jive-tab-spacer" width="1%"><img src="images/blank.gif" width="5" height="1" border="0"></td>    <td class="jive-<%= (("info".equals(log))?"selected-":"") %>tab" width="1%" nowrap>        <a href="logviewer.jsp?log=info"        >Info</a>        <span class="new">        <%= ((newlogs.containsKey("info"))?"*":"") %>        </span>    </td>    <td class="jive-tab-spacer" width="1%"><img src="images/blank.gif" width="5" height="1" border="0"></td>    <td class="jive-<%= (("warn".equals(log))?"selected-":"") %>tab" width="1%" nowrap>        <a href="logviewer.jsp?log=warn"        >Warn</a>        <span class="new">        <%= ((newlogs.containsKey("warn"))?"*":"") %>        </span>    </td>    <td class="jive-tab-spacer" width="1%"><img src="images/blank.gif" width="5" height="1" border="0"></td>    <td class="jive-<%= (("debug".equals(log))?"selected-":"") %>tab" width="1%" nowrap>        <a href="logviewer.jsp?log=debug"        >Debug</a>        <span class="new">        <%= ((newlogs.containsKey("debug"))?"*":"") %>        </span>    </td>    <td class="jive-tab-spring" width="92%" align="right" nowrap>        &nbsp;    </td></tr></table><table class="container" cellpadding="6" cellspacing="0" border="0" width="100%"><tr><td>    <span class="info">    <table cellpadding="2" cellspacing="0" border="0" width="100%">    <tr><td colspan="5"><img src="images/blank.gif" width="1" height="4" border="0"></td></tr>    <tr>        <td class="label" width="1%">Filename:</td>        <td width="1%" nowrap><b><%= logFile.getName() %></b></td>        <td rowspan="3" width="96%">&nbsp;</td>        <td class="label" width="1%">Order:</td>        <td width="1%" nowrap>            <input type="radio" name="mode" value="desc"<%= ("desc".equals(mode)?" checked":"") %>             onclick="this.form.submit();"             id="rb01"             > <label for="rb01">Newest at top</label>            <input type="radio" name="mode" value="asc"<%= ("asc".equals(mode)?" checked":"") %>             onclick="this.form.submit();"             id="rb02"             > <label for="rb02">Newest at bottom</label>        </td>    </tr>    <tr>        <td class="label" width="1%" nowrap>Last Modified:</td>        <%  Date lastMod = new Date(logFile.lastModified());            DateFormat dateFormatter = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT);        %>        <td width="1%" nowrap><span title"<%= SkinUtils.dateToText(request, pageUser, lastMod) %>"><%= dateFormatter.format(lastMod) %></span></td>        <td class="label" width="1%">Lines:</td>        <td width="1%" nowrap>            <select name="lines" size="1"             onchange="this.form.submit();">                <%  for (int j=0; j<LINES.length; j++) {                        String selected = (LINES[j].equals(numLinesParam))?" selected":"";                %>                    <option value="<%= LINES[j] %>"<%= selected %>><%= LINES[j] %>                <%  } %>                <%  if (!tooBig) { %>                    <option value="All"<%= (("All".equals(numLinesParam))?" selected":"") %>                     >All                <%  } %>            </select>        </td>    </tr>    <tr>        <td class="label" width="1%">Size:</td>        <%  ByteFormat byteFormatter = new ByteFormat(); %>        <td width="1%" nowrap><%= byteFormatter.format(logFile.length()) %></td>        <td class="label" width="1%">Refresh:</td>        <td width="1%" nowrap>            <select size="1" name="refresh" onchange="this.form.submit();">            <%  for (int j=0; j<REFRESHES.length; j++) {                    String selected = REFRESHES[j].equals(refreshParam)?" selected":"";            %>                <option value="<%= REFRESHES[j] %>"<%= selected %>><%= REFRESHES[j] %>            <%  } %>            </select>            (seconds)        </td>    </tr>    <%  // Print out a special switch to enable/disable debugging        if ("debug".equals(log)) {    %>        <input type="hidden" name="wasDebugEnabled" value="<%= debugEnabled %>">        <tr valign="top">            <td class="label" width="1%">Debugging Enabled:</td>            <td width="1%" nowrap>                <input type="radio" name="debugEnabled" value="true"<%= ((debugEnabled) ? " checked" : "") %> id="de01">                <label for="de01">Enabled</label>                <input type="radio" name="debugEnabled" value="false"<%= ((!debugEnabled) ? " checked" : "") %> id="de02">                <label for="de02">Disabled</label>                (change requires restart)                <br>                <input type="submit" name="" value="Update">            </td>            <td colspan="3">&nbsp;</td>        </tr>    <%  } %>    <tr><td colspan="5"><img src="images/blank.gif" width="1" height="8" border="0"></td></tr>    </table>    </span></td></tr></table><br><span class="log"><table cellpadding="1" cellspacing="0" border="0" width="100%"><tr>    <th class="head-num">line</th>    <th>message</th></tr><tr>    <td width="1%" nowrap class="num">        <%  if (ASCENDING.equals(mode)) { %>            <%  for (int j=start+1; j<=numLines; j++) { %>                <%= j %><br>            <%  } %>        <%  } else { %>            <%  for(int j=numLines; j>=start+1; j--) { %>                <%= j %><br>            <%  } %>        <%  } %>    </td>    <td width="99%" class="line">        <%  for (int j=0; j<lines.length; j++) {                if (lines[j] != null) {        %>            <nobr><%= lines[j] %></nobr><br>        <%      }            }        %>    </td></tr></table></span></form><%@ include file="footer.jsp" %>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -