Class Log


  • public class Log
    extends java.lang.Object
    Version:
    $Revision: 171 $
    Author:
    $Author: $
    • Constructor Summary

      Constructors 
      Constructor Description
      Log​(java.io.File baseDir)
      Creates a new Log object copying the output onto the exported print stream to a file in the specified directory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEncoding()
      Returns the value of encoding.
      java.io.File getFile()
      Return the file used for logging or null.
      protected java.io.PrintStream getPrintStream()
      Create a stream for writing errors to the log.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Log

        public Log​(java.io.File baseDir)
            throws java.io.IOException
        Creates a new Log object copying the output onto the exported print stream to a file in the specified directory.
        Parameters:
        baseDir - name of the directory for logging output.
        Throws:
        java.io.IOException - On I/O error
    • Method Detail

      • getPrintStream

        protected java.io.PrintStream getPrintStream()
                                              throws java.io.IOException
        Create a stream for writing errors to the log.
        Returns:
        output stream to the error log.
        Throws:
        java.io.IOException - On I/O error
      • getFile

        public java.io.File getFile()
        Return the file used for logging or null.
      • getEncoding

        public java.lang.String getEncoding()
        Returns the value of encoding.
        Returns:
        Returns encoding.