marf.util
Class Logger

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--marf.util.BaseThread
              |
              +--marf.util.Logger
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
Debug

public class Logger
extends BaseThread

MARF Runnable Logging Facility.

TODO: document. $Id: Logger.java,v 1.5 2005/06/05 23:39:03 mokhov Exp $

Since:
0.3.0
Version:
$Revision: 1.5 $
Author:
Serguei Mokhov

Nested Class Summary
 class Logger.LogPrintStream
          Our own LogPrintStream.
 
Field Summary
protected  boolean available
           
protected  boolean bNoTimestamp
           
protected  java.lang.String filename
           
protected  Logger.LogPrintStream log
           
static int LOG_STDERR_TO_FILE
           
static int LOG_STDOUT_STDERR_TO_FILE
           
static int LOG_STDOUT_TO_FILE
           
static int LOG_TO_FILE_STDOUT_STDERR
           
protected  int logDirection
           
protected  java.lang.String logMessage
           
 
Fields inherited from class marf.util.BaseThread
iTID, siNextTID
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Logger(java.lang.String psrFilename)
           
Logger(java.lang.String psrFilename, int logDirection)
           
 
Method Summary
static java.lang.String getRevision()
          Returns source code revision information.
 
Methods inherited from class marf.util.BaseThread
getNextTID, getTID
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG_TO_FILE_STDOUT_STDERR

public static final int LOG_TO_FILE_STDOUT_STDERR
See Also:
Constant Field Values

LOG_STDOUT_TO_FILE

public static final int LOG_STDOUT_TO_FILE
See Also:
Constant Field Values

LOG_STDERR_TO_FILE

public static final int LOG_STDERR_TO_FILE
See Also:
Constant Field Values

LOG_STDOUT_STDERR_TO_FILE

public static final int LOG_STDOUT_STDERR_TO_FILE
See Also:
Constant Field Values

bNoTimestamp

protected boolean bNoTimestamp

filename

protected java.lang.String filename

available

protected boolean available

log

protected Logger.LogPrintStream log

logMessage

protected java.lang.String logMessage

logDirection

protected int logDirection
Constructor Detail

Logger

public Logger(java.lang.String psrFilename)
       throws java.lang.Exception

Logger

public Logger(java.lang.String psrFilename,
              int logDirection)
       throws java.lang.Exception
Method Detail

getRevision

public static java.lang.String getRevision()
Returns source code revision information.

Returns:
revision string