Ejemplo n.º 1
0
 private static void dprint(String msg) {
   NamingUtils.dprint(
       "NamingContextImpl("
           + Thread.currentThread().getName()
           + " at "
           + System.currentTimeMillis()
           + " ems): "
           + msg);
 }
Ejemplo n.º 2
0
 /**
  * Create a error print stream to the supplied file.
  *
  * @param logFile the file to which error messages will go.
  * @exception IOException thrown if the file cannot be opened for output.
  */
 public static void makeErrStream(File errFile) throws java.io.IOException {
   if (debug) {
     // Create an outputstream for errors
     java.io.OutputStream errOStream = new java.io.FileOutputStream(errFile);
     java.io.DataOutputStream errDStream = new java.io.DataOutputStream(errOStream);
     errStream = new java.io.PrintStream(errDStream);
     dprint("Error stream setup completed.");
   }
 }