Class DebugLogStream

All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
Direct Known Subclasses:
AutoRepiperDebugLogStream

public class DebugLogStream extends PrintStream
  • Constructor Details

  • Method Details

    • setLogSeverity

      public void setLogSeverity(LogSeverity logSeverity)
    • getLogSeverity

      public LogSeverity getLogSeverity()
    • getWrappedOutStream

      public PrintStream getWrappedOutStream()
    • getWrappedWarnStream

      public PrintStream getWrappedWarnStream()
    • getWrappedErrStream

      public PrintStream getWrappedErrStream()
    • getFormatter

      public IDebugLogFormatter getFormatter()
    • write

      protected void write(PrintStream printStream, LogSeverity logSeverity, String string1)
    • writeln

      protected void writeln(PrintStream printStream, LogSeverity logSeverity, String string1)
    • writeln

      protected void writeln(PrintStream printStream, LogSeverity logSeverity, String string1, Object... object)
    • writeWithCallerPrefixln

      protected void writeWithCallerPrefixln(PrintStream printStream, LogSeverity logSeverity, int int0, boolean boolean0, Object object)
    • writeWithCallerPrefixln

      protected void writeWithCallerPrefixln(PrintStream printStream, LogSeverity logSeverity, int int0, boolean boolean0, String string2, Object... object)
    • generateCallerPrefix

      public static String generateCallerPrefix()
      Returns the class name and method name prefix of the calling code.
    • tryGetCallerTraceElement

      public static StackTraceElement tryGetCallerTraceElement(int depthIdx)
    • getStackTraceElementString

      public static String getStackTraceElementString(StackTraceElement stackTraceElement, boolean includeLineNo)
    • getTopStackTraceString

      public static String getTopStackTraceString(Throwable ex)
    • printStackTrace

      public void printStackTrace()
    • printStackTrace

      public void printStackTrace(String message)
    • printStackTrace

      public void printStackTrace(int int0)
    • printStackTrace

      public void printStackTrace(String string, int int0)
    • isEnabled

      public boolean isEnabled()
    • isLogEnabled

      public boolean isLogEnabled(LogSeverity logSeverity)
    • trace

      public void trace(Object object)
    • trace

      public void trace(String format, Object... param0)
    • debugln

      public void debugln(Object object)
    • debugln

      public void debugln(String format, Object... param0)
      Similar to println. Prepends the calling method and class name to the output string. Uses
      Parameters:
      format - The string format to be printed
      param0 -
    • debugOnceln

      public void debugOnceln(Object object)
    • debugOnceln

      public void debugOnceln(String string, Object... object)
    • noise

      public void noise(Object object)
    • noise

      public void noise(String format, Object... param0)
    • warn

      public void warn(Object obj)
      Prints an object to the Warning stream. The string produced by the
      Parameters:
      obj - The Object to be printed
    • warn

      public void warn(String string, Object... object)
    • warnOnce

      public void warnOnce(Object object)
    • warnOnce

      public void warnOnce(String string, Object... object)
    • error

      public void error(Object obj)
      Prints an object to the Error stream. The string produced by the
      Parameters:
      obj - The Object to be printed
    • error

      public void error(String string, Object... object)
    • debugln

      public void debugln(int int0, Object object)
    • debugln

      public void debugln(int int0, String string, Object... object)
    • debugOnceln

      public void debugOnceln(int int0, Object object)
    • debugOnceln

      public void debugOnceln(int int0, String string, Object... object)
    • noise

      public void noise(int int0, Object object)
    • noise

      public void noise(int int0, String string, Object... object)
    • warn

      public void warn(int int0, Object object)
    • warn

      public void warn(int int0, String string, Object... object)
    • error

      public void error(int int0, Object object)
    • error

      public void error(int int0, String string, Object... object)
    • trace

      public void trace(int int0, Object object)
    • trace

      public void trace(int int0, String string, Object... object)
    • warnOnce

      public void warnOnce(int int0, Object object)
    • warnOnce

      public void warnOnce(int int0, String string, Object... object)
    • print

      public void print(boolean b)
      Prints a boolean value. The string produced by
      Overrides:
      print in class PrintStream
      Parameters:
      b - The boolean to be printed
    • print

      public void print(char c)
      Prints a character. The character is translated into one or more bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the
      Overrides:
      print in class PrintStream
      Parameters:
      c - The char to be printed
    • print

      public void print(int i)
      Prints an integer. The string produced by
      Overrides:
      print in class PrintStream
      Parameters:
      i - The int to be printed
    • print

      public void print(long l)
      Prints a long integer. The string produced by
      Overrides:
      print in class PrintStream
      Parameters:
      l - The long to be printed
    • print

      public void print(float f)
      Prints a floating-point number. The string produced by
      Overrides:
      print in class PrintStream
      Parameters:
      f - The float to be printed
    • print

      public void print(double d)
      Prints a double-precision floating-point number. The string produced by
      Overrides:
      print in class PrintStream
      Parameters:
      d - The double to be printed
    • print

      public void print(String s)
      Prints a string. If the argument is
      Overrides:
      print in class PrintStream
      Parameters:
      s - The String to be printed
    • print

      public void print(Object obj)
      Prints an object. The string produced by the
      Overrides:
      print in class PrintStream
      Parameters:
      obj - The Object to be printed
    • printf

      public PrintStream printf(String string, Object... object)
      Overrides:
      printf in class PrintStream
    • println

      public void println()
      Terminates the current line by writing the line separator string. The line separator string is defined by the system property
      Overrides:
      println in class PrintStream
    • println

      public void println(boolean x)
      Prints a boolean and then terminate the line. This method behaves as though it invokes
      Overrides:
      println in class PrintStream
      Parameters:
      x - The boolean to be printed
    • println

      public void println(char x)
      Prints a character and then terminate the line. This method behaves as though it invokes
      Overrides:
      println in class PrintStream
      Parameters:
      x - The char to be printed.
    • println

      public void println(int x)
      Prints an integer and then terminate the line. This method behaves as though it invokes
      Overrides:
      println in class PrintStream
      Parameters:
      x - The int to be printed.
    • println

      public void println(long x)
      Prints a long and then terminate the line. This method behaves as though it invokes
      Overrides:
      println in class PrintStream
      Parameters:
      x - a The long to be printed.
    • println

      public void println(float x)
      Prints a float and then terminate the line. This method behaves as though it invokes
      Overrides:
      println in class PrintStream
      Parameters:
      x - The float to be printed.
    • println

      public void println(double x)
      Prints a double and then terminate the line. This method behaves as though it invokes
      Overrides:
      println in class PrintStream
      Parameters:
      x - The double to be printed.
    • println

      public void println(char[] x)
      Prints a character and then terminate the line. This method behaves as though it invokes
      Overrides:
      println in class PrintStream
      Parameters:
      x - The char to be printed.
    • println

      public void println(String x)
      Prints a String and then terminate the line. This method behaves as though it invokes
      Overrides:
      println in class PrintStream
      Parameters:
      x - The String to be printed.
    • println

      public void println(Object x)
      Prints an Object and then terminate the line. This method calls at first String.valueOf(x) to get the printed object's string value, then behaves as though it invokes
      Overrides:
      println in class PrintStream
      Parameters:
      x - The Object to be printed.
    • println

      public void println(String format, Object... param0)
    • printException

      public void printException(Throwable ex, String errorMessage, LogSeverity severity)
    • printException

      public void printException(Throwable ex, String errorMessage, String callerPrefix, LogSeverity severity)