Class StdDebugFile

  • All Implemented Interfaces:
    DebugFile

    public class StdDebugFile
    extends Object
    implements DebugFile
    Debug file dedicated to std out
    • Method Detail

      • getInstance

        public static StdDebugFile getInstance()
        Get std out debug file
        Returns:
        std debug file
      • writeIt

        public void writeIt​(String prefix,
                            String msg,
                            Throwable th)
                     throws IOException
        Description copied from interface: DebugFile
        Write message into file
        Specified by:
        writeIt in interface DebugFile
        Parameters:
        prefix - Message prefix
        msg - Message to be recorded.
        th - the optional java.lang.Throwable which if present will be used to record the stack trace.
        Throws:
        IOException
      • printError

        public static void printError​(String debugName,
                                      String message,
                                      Throwable ex)
        Printing error directly into the stdout. A log header will be generated
        Parameters:
        debugName - debug name
        message - the error message
        ex - the exception (can be null)