org.jcoderz.commons.logging
Class LogViewer

java.lang.Object
  extended by org.jcoderz.commons.logging.LogViewer
All Implemented Interfaces:
Runnable

public final class LogViewer
extends Object
implements Runnable

This implements a viewer for existing log files. The output generated by this should never be viewed using this, since the format might be different to a 'real' log file. TODO: A lot of functionality is still to implement (behaviour according to command line options).


Field Summary
static String LINE_SEPARATOR
          Line separator to be used in output files.
 
Method Summary
static void main(String[] argv)
          The main entry method.
 void run()
          The run method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_SEPARATOR

public static final String LINE_SEPARATOR
Line separator to be used in output files.

Method Detail

main

public static void main(String[] argv)
The main entry method. Installs a new instance of this, which reads the supplied log file.

Parameters:
argv - Contains the command line arguments.

run

public void run()
The run method. Reads the log file and prints the log records until end of file is reached (batch mode) or until it is terminated.

Specified by:
run in interface Runnable
See Also:
Runnable.run()


Copyright 2007 The jCoderZ Project.