org.tranche.logs
Class SimpleLog

java.lang.Object
  extended by org.tranche.logs.SimpleLog

public class SimpleLog
extends java.lang.Object


Field Summary
static int AFT_LOG
          Identifier for add file tool log.
static int GFT_LOG
          Identifier for get file tool log.
static boolean IS_DISABLED
          ------------------------------------------------------------ Need to disable for stress tests.
static int RTS_LOG
          Identifier for remote tranche server log.
static int ServerUtil_LOG
          Identifier for server utility log.
static int SWT_LOG
          Identifier for server worker thread log.
 
Constructor Summary
SimpleLog()
           
 
Method Summary
static void log(LogUnit lu)
          Add a log unit to the run queue to be logged.
static void setEnabled(boolean loggingEnabled)
          Set whether to enable or disable logging.
static void setEnabled(boolean loggingEnabled, boolean purgeOldLogFiles)
          Set whether to enable logging and/or purge old log files.
static void setLog(int log, java.io.File fileForLog)
          Set log identifier and file location for log for simple logging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_DISABLED

public static final boolean IS_DISABLED
------------------------------------------------------------ Need to disable for stress tests. Throwing OOM erros ------------------------------------------------------------

See Also:
Constant Field Values

AFT_LOG

public static final int AFT_LOG
Identifier for add file tool log.

See Also:
Constant Field Values

GFT_LOG

public static final int GFT_LOG
Identifier for get file tool log.

See Also:
Constant Field Values

RTS_LOG

public static final int RTS_LOG
Identifier for remote tranche server log.

See Also:
Constant Field Values

SWT_LOG

public static final int SWT_LOG
Identifier for server worker thread log.

See Also:
Constant Field Values

ServerUtil_LOG

public static final int ServerUtil_LOG
Identifier for server utility log.

See Also:
Constant Field Values
Constructor Detail

SimpleLog

public SimpleLog()
Method Detail

log

public static final void log(LogUnit lu)
Add a log unit to the run queue to be logged.

Parameters:
lu -

setEnabled

public static final void setEnabled(boolean loggingEnabled)
Set whether to enable or disable logging.

Parameters:
loggingEnabled -

setEnabled

public static final void setEnabled(boolean loggingEnabled,
                                    boolean purgeOldLogFiles)
Set whether to enable logging and/or purge old log files.

Parameters:
loggingEnabled -
purgeOldLogFiles -

setLog

public static void setLog(int log,
                          java.io.File fileForLog)
Set log identifier and file location for log for simple logging.

Parameters:
log -
fileForLog -


This code is free for use both commercially and non-commercially as stated in the project's license