Index: trunk/psLib/src/sys/psLogMsg.c
===================================================================
--- trunk/psLib/src/sys/psLogMsg.c	(revision 5071)
+++ trunk/psLib/src/sys/psLogMsg.c	(revision 5072)
@@ -12,6 +12,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-09-09 01:11:22 $
+ *  @version $Revision: 1.52 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-09-20 02:43:53 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -51,4 +51,5 @@
 
 static FILE *logDest = (FILE *) 1;      // flag to initialize to stderr before using.
+static int logFD = 0;
 static psS32 globalLogLevel = PS_LOG_INFO;        // log all messages at this or above
 static psBool logTime = true;     // Flag to include time info
@@ -81,4 +82,9 @@
 }
 
+int psLogGetLevel()
+{
+    return (globalLogLevel);
+}
+
 /*****************************************************************************
 psLogSetDestination(): sets the log message destination.
@@ -94,4 +100,5 @@
     if (logDest == (FILE *) 1) {
         logDest = stderr;
+        logFD = 2;
     }
     if (fd == -1)
@@ -104,4 +111,5 @@
         }
         logDest = stdout;
+        logFD = 1;
     } else if (fd == 2) {
         //        fp = stderr;
@@ -110,4 +118,5 @@
         }
         logDest = stderr;
+        logFD = 2;
     } else if (fd == 0) {
         //        fp = NULL;
@@ -116,4 +125,5 @@
         }
         logDest = NULL;
+        logFD = 0;
         //        return true;
     } else if (fd > 2) {
@@ -123,4 +133,5 @@
         fp = fdopen(fd, "w");
         logDest = fp;
+        logFD = fd;
         //        fclose(fp);
         //        return true;
@@ -130,4 +141,13 @@
 
 }
+
+int psLogGetDestination(void)
+{
+    if (logDest == (FILE *) 1) {
+        logFD = 1;
+    }
+    return (logFD);
+}
+
 
 /*****************************************************************************
Index: trunk/psLib/src/sys/psLogMsg.h
===================================================================
--- trunk/psLib/src/sys/psLogMsg.h	(revision 5071)
+++ trunk/psLib/src/sys/psLogMsg.h	(revision 5072)
@@ -11,6 +11,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-09-15 21:22:22 $
+ *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-09-20 02:43:53 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -36,4 +36,11 @@
 );
 
+/** This procedure returns the current log destination file descriptor.  If the
+ *  destination has not been defined by the use, the descriptor for stdout is returned.
+ *
+ *  @return int:        The current file descriptor.
+ */
+int psLogGetDestination();
+
 /** This procedure sets the message level for future log messages.  Subsequent
  *  log messages, with a log level of "mylevel", will only be logged if
@@ -42,9 +49,15 @@
  *  be displayed.  The old log level will be returned.
  *
- *  @return int    old logging level
+ *  @return int:        old logging level.
  */
 int psLogSetLevel(
     int level                          ///< Specifies the system log level
 );
+
+/** This procedures returns the current log message level.
+ *
+ *  @return int:        The current logging level.
+ */
+int psLogGetLevel();
 
 /** This procedure sets the log format for future log messages.  The argument
