Package org.dlese.dpc.logging
Class DleseLogManager
java.lang.Object
org.dlese.dpc.logging.DleseLogManager
Overall log manager. See
ClfLogger and
DebugLogger for usage info.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intTime stamps debug logs are in local time, as opposed to UTC timestatic intStandard debug log format.static intDebug log is created in text format, as opposed to XML.static intTime stamps debug logs are in UTC (GMT) time, as opposed to local timestatic intDebug log is created in XML format, as opposed to text. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClfLoggergetClfLogger(Level loggerLevel, boolean appendFlag, String outfilename) Returns aClfLogger.static DebugLoggergetDebugLogger(int outputType, int timeType, int outputFormat, Level loggerLevel, boolean appendFlag, String outfilename) Returns aDebugLogger.
-
Field Details
-
LOG_STD
public static int LOG_STDStandard debug log format. -
LOG_TEXT
public static int LOG_TEXTDebug log is created in text format, as opposed to XML. -
LOG_XML
public static int LOG_XMLDebug log is created in XML format, as opposed to text. -
LOG_UTCTIME
public static int LOG_UTCTIMETime stamps debug logs are in UTC (GMT) time, as opposed to local time -
LOG_LOCALTIME
public static int LOG_LOCALTIMETime stamps debug logs are in local time, as opposed to UTC time
-
-
Constructor Details
-
DleseLogManager
public DleseLogManager()
-
-
Method Details
-
getClfLogger
public static ClfLogger getClfLogger(Level loggerLevel, boolean appendFlag, String outfilename) throws LogException Returns aClfLogger.- Parameters:
loggerLevel- The minumum level message this logger will accept.appendFlag- If true, we append to outfileoutfilename- 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 aDebugLogger.- Parameters:
outputType- Must always be LOG_STD. For future flexibility.timeType- The type of time stamp: Either LOG_UTCTIME or LOG_LOCALTIMEoutputFormat- Either LOG_XML or LOG_TEXT. Normally LOG_TEXT.loggerLevel- The minumum level message this logger will accept.appendFlag- If true, we append to outfileoutfilename- The name of output file- Throws:
LogException
-