Index: trunk/psLib/src/sysUtils/psLogMsg.c
===================================================================
--- trunk/psLib/src/sysUtils/psLogMsg.c	(revision 499)
+++ trunk/psLib/src/sysUtils/psLogMsg.c	(revision 500)
@@ -1,4 +1,13 @@
 /*****************************************************************************
     A simple implementation of a logging facility for Pan-STARRS
+ 
+NOTES: currently, the prototype code has the following global variables:
+    static int logDest;
+    static int logLevel;
+    static int log_time;
+    static int log_host;
+    static int log_level;
+    static int log_name;
+    static int log_msg;
  *****************************************************************************/
 #include <limits.h>
@@ -20,4 +29,12 @@
 static int logDest = PS_LOG_TO_STDERR; // where to log messages
 static int logLevel = PS_LOG_INFO;     // log all messages at this or above
+// The following variables control
+// which information is displayed in
+// log messages.
+static int log_time = 1;                // Flag to include time info
+static int log_host = 1;                // Flag to include host info
+static int log_level = 1;               // Flag to include level info
+static int log_name = 1;                // Flag to include name info
+static int log_msg = 1;                 // Flag to include message info
 /*****************************************************************************
 psSetLogLevel(): Set the current log level and return old level.
@@ -33,6 +50,5 @@
     int oldLevel = logLevel;
 
-    if ((level < MIN_LOG_LEVEL) ||
-            (level > MAX_LOG_LEVEL)) {
+    if ((level < MIN_LOG_LEVEL) || (level > MAX_LOG_LEVEL)) {
         psLogMsg("logmsg", PS_LOG_WARN,
                  "Attempt to set invalid logMsg level: %d", level);
@@ -47,5 +63,6 @@
 /*****************************************************************************
 psSetLogDestination(): sets the destination where log messages will be
- sent to.
+sent to.
+ 
 Input:
  dest (int): the new log destination
@@ -76,11 +93,6 @@
 
 
-static int log_time = 1;
-static int log_host = 1;
-static int log_level = 1;
-static int log_name = 1;
-static int log_msg = 1;
-/*****************************************************************************
-    psSetLogFormat(): Set the format of psLogMsg output.  More precisely,
+/*****************************************************************************
+psSetLogFormat(): Set the format of psLogMsg output.  More precisely,
     provide a string consisting of the letters {H (host), L (level), M
     (message), N (name), T (time)}.  The default is "HLMNT".  This string
@@ -88,10 +100,11 @@
     included in message logs.  It does not determine the order in which that
     information will appear (that order is fixed).
-    Input:
- fmt: a string specifying the format.
-    Output:
- none.
-    Return:
- NULL.
+ 
+Input:
+    fmt: a string specifying the format.
+Output:
+    none.
+Return:
+    NULL.
  *****************************************************************************/
 void psSetLogFormat(const char *fmt)
@@ -172,12 +185,11 @@
     static int first = 1;
     static char hostname[HOST_NAME_MAX + 1];
-    char clevel=0;   // letter-name for level
-    char head[HOST_NAME_MAX + 40]; // yes, this is long enough
-    char *head_ptr = head;  // where we've got to in head
+    char clevel=0;                      // letter-name for level
+    char head[HOST_NAME_MAX + 40];      // yes, this is long enough
+    char *head_ptr = head;              // where we've got to in head
     time_t clock = time(NULL);
     struct tm *utc = gmtime(&clock);
 
-    if ((level > logLevel) ||
-            (logDest == PS_LOG_NONE)) {
+    if ((level > logLevel) || (logDest == PS_LOG_NONE)) {
         return;
     }
