head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2001.08.15.17.34.20;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2001.08.14.22.49.14;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Factored out stream manipulation methods into a utility class.
@
text
@<div id="logview" class="app">

#if( !$loginUser.isAnonymous() && $servletTaskBar.available($servletName))
 #parse("$servletTaskBar.getPath($servletName)")
#end

<h3>Log View</h3>

<p>Select a log to look at.

<form action="LogView" method="get" enctype="application/x-www-form-urlencoded">

 <table>
  <tr>
   <td>
    #foreach ($log in $logfiles)
     <input type="radio" name="logfileID" value="$log.getID()"#if($logfileID==$log.getID())checked="checked"#end> $log.getPath() ($log.getLength() bytes)<br>
    #end
   </td>
   <td valign=top>
    <p>Print 1000 lines starting at line: 
      <input type="text" name="offset" size="6" maxlength="6" value="$offset">
    <br>(leave empty to print last 1000 lines).
    <p><input type="submit" name="Button" value="View Log" /></p>
   </td></tr></table>

</form>

#if ($logText)
<p><hr></p>

 <h3>Log chunk</h3>

 <pre>$logText</pre>

#end

</div>
@


1.1
log
@Added log view capability.
@
text
@d17 1
a17 1
     <input type="radio" name="logfileID" value="$log.getID()"#if($logfileID==$log.getID())checked="checked"#end> $log.getPath()<br>
d21 3
a23 3
    <p><input type="text" name="offset" size="6" maxlength="6" value="$offset"> 
    Log offset at which to start printing
     (leave empty to print last 1000 lines).
@

