DLESE Tools
v1.6.0

org.dlese.dpc.logging
Class DleseLogManager

java.lang.Object
  extended by org.dlese.dpc.logging.DleseLogManager

public class DleseLogManager
extends Object

Overall log manager. See ClfLogger and DebugLogger for usage info.


Field Summary
static int LOG_LOCALTIME
          Time stamps debug logs are in local time, as opposed to UTC time
static int LOG_STD
          Standard debug log format.
static int LOG_TEXT
          Debug log is created in text format, as opposed to XML.
static int LOG_UTCTIME
          Time stamps debug logs are in UTC (GMT) time, as opposed to local time
static int LOG_XML
          Debug log is created in XML format, as opposed to text.
 
Constructor Summary
DleseLogManager()
           
 
Method Summary
static ClfLogger getClfLogger(Level loggerLevel, boolean appendFlag, String outfilename)
          Returns a ClfLogger.
static DebugLogger getDebugLogger(int outputType, int timeType, int outputFormat, Level loggerLevel, boolean appendFlag, String outfilename)
          Returns a DebugLogger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_STD

public static int LOG_STD
Standard debug log format.


LOG_TEXT

public static int LOG_TEXT
Debug log is created in text format, as opposed to XML.


LOG_XML

public static int LOG_XML
Debug log is created in XML format, as opposed to text.


LOG_UTCTIME

public static int LOG_UTCTIME
Time stamps debug logs are in UTC (GMT) time, as opposed to local time


LOG_LOCALTIME

public static int LOG_LOCALTIME
Time stamps debug logs are in local time, as opposed to UTC time

Constructor Detail

DleseLogManager

public DleseLogManager()
Method Detail

getClfLogger

public static ClfLogger getClfLogger(Level loggerLevel,
                                     boolean appendFlag,
                                     String outfilename)
                              throws LogException
Returns a ClfLogger.

Parameters:
loggerLevel - The minumum level message this logger will accept.
appendFlag - If true, we append to outfile
outfilename - The name of output file
Throws:
LogException

getDebugLogger

public static DebugLogger getDebugLogger(int outputType,
                                         int timeType,
                                         int outputFormat,
                                         Level loggerLevel,
                                         boolean appendFlag,
                                         String outfilename)
                                  throws LogException
Returns a DebugLogger.

Parameters:
outputType - Must always be LOG_STD. For future flexibility.
timeType - The type of time stamp: Either LOG_UTCTIME or LOG_LOCALTIME
outputFormat - Either LOG_XML or LOG_TEXT. Normally LOG_TEXT.
loggerLevel - The minumum level message this logger will accept.
appendFlag - If true, we append to outfile
outfilename - The name of output file
Throws:
LogException

DLESE Tools
v1.6.0