equip.net
Class LogFileEcho

java.lang.Object
  extended byequip.net.LogFileEcho

public class LogFileEcho
extends java.lang.Object

a program to monitor and echo a file on the filesystem to stdout with additional timestamps, e.g. when the file lacks accurate timestamps, such as Orinico wifi client logs.


Field Summary
static int BUFFER_SIZE
          buffer size
static int CHECK_INTERVAL_MS
          file check interval ms
 
Constructor Summary
LogFileEcho(java.io.File file, java.lang.String id)
          monitor given file, echo with timestamps with given id as first item after timestamp on line.
 
Method Summary
static void main(java.lang.String[] args)
          main: usage: java equip.net.LogFileEcho filename id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHECK_INTERVAL_MS

public static final int CHECK_INTERVAL_MS
file check interval ms

See Also:
Constant Field Values

BUFFER_SIZE

public static final int BUFFER_SIZE
buffer size

See Also:
Constant Field Values
Constructor Detail

LogFileEcho

public LogFileEcho(java.io.File file,
                   java.lang.String id)
            throws java.io.IOException
monitor given file, echo with timestamps with given id as first item after timestamp on line.

Method Detail

main

public static void main(java.lang.String[] args)
main: usage: java equip.net.LogFileEcho filename id