Class DebugLogger

java.lang.Object
com.xinapse.util.logging.DebugLogger

public abstract class DebugLogger extends Object
Class for creating debugging Loggers.
  • Method Details

    • getLogger

      public static Logger getLogger(String loggerName, Props.Property property)
      Get a Logger for debugging.
      Parameters:
      loggerName - the name for the logger, which is prepended to the debugging message.
      property - the Props.Property that is used to determine whether debugging is turned on (it is turned on if the Property value is <true>).
      Returns:
      a Logger for debugging messages.
    • getLogger

      public static Logger getLogger(String loggerName, PrintStream debugStrm)
      Get a Logger for debugging.
      Parameters:
      loggerName - the name for the logger, which is prepended to the debugging message.
      debugStrm - the PrintStream for logging debugging messages.
      Returns:
      a Logger for debugging messages.
    • getLogger

      public static Logger getLogger(String loggerName, File logFile) throws IOException
      Get a Logger for debugging.
      Parameters:
      loggerName - the name for the logger, which is prepended to the debugging message.
      logFile - the File for logging debugging messages.
      Returns:
      a Logger for debugging messages.
      Throws:
      IOException - if the log file cannot be created.