Class DleseLogManager

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

public class DleseLogManager extends Object
Overall log manager. See ClfLogger and DebugLogger for usage info.
  • Field Details

    • 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 Details

    • DleseLogManager

      public DleseLogManager()
  • Method Details

    • 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