📄 logs.jsp
字号:
<input type="hidden" name="log" value="<%=fileName%>"> </td> </tr> </table> </td> <td valign="top" width="170"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20" align="right" valign="top"> <b>By:</b> </td> <td align="left" valign="top" width="150"> <a href="javascript:changeMode('number')" <%=mode.equalsIgnoreCase("number")?"style='text-decoration: none; color: #000000'":""%>>Line number</a><br> <a href="javascript:changeMode('time')" <%=mode.equalsIgnoreCase("time")?"style='text-decoration: none; color: #000000'":""%>>Time stamp</a><br> <a href="javascript:changeMode('regexpr')" <%=mode.equalsIgnoreCase("regexpr")?"style='text-decoration: none; color: #000000'":""%>>Regular expression</a><br> <a href="javascript:changeMode('tail')" <%=mode.equalsIgnoreCase("tail")?"style='text-decoration: none; color: #000000'":""%>>Tail</a><br> <input type="hidden" name="mode" value="<%=mode%>"> </td> </tr> </table> </td> <td valign="top"> <% if(mode.equalsIgnoreCase("tail")){ %> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td> <b>Refresh time:</b> </td> <td> <select name="time" onChange="document.frmLogs.submit()" > <option value="-1" <%=iTime==-1?"selected":""%>>No refresh</option> <option value="2" <%=iTime==2?"selected":""%>>2 sec.</option> <option value="5" <%=iTime==5?"selected":""%>>5 sec.</option> <option value="10" <%=iTime==10?"selected":""%>>10 sec.</option> <option value="20" <%=iTime==20?"selected":""%>>20 sec.</option> <option value="30" <%=iTime==30?"selected":""%>>30 sec.</option> </select> </td> </tr> <tr> <td> <b>Lines to show:</b> </td> <td> <input size="4" name="linesToShow" value="<%=linesToShow%>"> </td> </tr> </table> <% } else if(mode.equalsIgnoreCase("number")){ %> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap align="right"> <b>Line number:</b> </td> <td> <input size="4" value="<%=linenumber%>" name="linenumber"> <input type="submit" value="Get"> </td> </tr> <tr> <td> <b>Lines to show:</b> </td> <td> <input size="4" name="linesToShow" value="<%=linesToShow%>"> </td> </tr> </table> <% } else if(mode.equalsIgnoreCase("time")){ %> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap align="right" valign="top"> <b>Timestamp:</b> </td> <td> <input value="<%=request.getParameter("timestamp")==null?"":request.getParameter("timestamp")%>" name="timestamp" align="absmiddle" size="21"> <input type="submit" value="Get"><br> (YYYY-MM-DDTHH:MM:SS.SSS) </td> </tr> <tr> <td> <b>Lines to show:</b> </td> <td> <input size="4" name="linesToShow" value="<%=linesToShow%>"> </td> </tr> </table> <% } else if(mode.equalsIgnoreCase("regexpr")){ %> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap align="right"> <b>Regular expression:</b> </td> <td width="100%" colspan="4"> <input size="50" name="regexpr" value="<%=request.getParameter("regexpr")==null?"":request.getParameter("regexpr")%>" align="absmiddle"> <input type="submit" value="Get"> </td> </tr> <tr> <td align="right"> <font size="-2">(<a href="<%=request.getContextPath()%>/help/regexpr.jsp">about java reg.expr.</a>)</font> </td> <td nowrap colspan="2"> Start at match: <input size="4" name="linesToSkip" value="<%=linesToSkip%>"> </td> <td nowrap colspan="2" width="100%"> Show matches: <input size="4" name="linesToShow" value="<%=linesToShow%>"> (0 = all) </td> </tr> <tr> <td></td> <td nowrap> <input name="ln" value="true" type="checkbox" <%=request.getParameter("ln")!=null&&request.getParameter("ln").equalsIgnoreCase("true")?"checked":""%>><input type="hidden" name="linesToShow" value="<%=linesToShow%>"> </td> <td nowrap> Line numbers </td> <td nowrap> <input name="grep" value="true" type="checkbox" <%=request.getParameter("grep")!=null&&request.getParameter("grep").equalsIgnoreCase("true")?"checked":""%>> </td> <td width="100%"> Grep style </td> </tr> <tr> <td> </td> <td nowrap> <input name="indent" value="true" type="checkbox" <%=request.getParameter("indent")!=null&&request.getParameter("indent").equalsIgnoreCase("true")?"checked":""%>> </td> <td width="100%" colspan="3"> Include following indented lines </td> </tr> </table> <% } %> </td> </tr> </table> </form> <p> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"></td> <td height="5" colspan="3"> </td> <td colspan="2"></td> </tr> <tr> <td rowspan="5" width="3" nowrap > <td rowspan="5" width="1" nowrap bgcolor="#0c0c0c"> </td> <td height="1" colspan="4" bgcolor="#0c0c0c"> </td> <td rowspan="5" width="1" nowrap bgcolor="#0c0c0c"> <td rowspan="5" width="3" nowrap > </tr> <tr> <td colspan="2"> <%=fileName%> for <%=theJob.getJobName()%> </td> <td colspan="1" align="right"> <%=logInfo%> </td> <td> </td> </tr> <tr> <td height="1" colspan="4" bgcolor="#0c0c0c"> </td> </tr> <tr> <td colspan="4" class="main" width="400" height="100" valign="top"> <pre><% TextUtils.writeEscapedForHTML(logText,out); %></pre> </td> </tr> <tr> <td height="1" colspan="4" bgcolor="#0c0c0c"> </td> </tr> <tr> <td height="5" colspan="4"> </td> </tr> </table><% if (handler.getCurrentJob() != null && handler.getCurrentJob().getStatus().equals(CrawlJob.STATUS_PAUSED)) { out.print("<a href=\"" + request.getContextPath() + "/console/action.jsp?action=rotateLogs\">Rotate crawler logs</a>"); }%><%@include file="/include/foot.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -