[mapserver-commits] r10145 - trunk/docs/en/optimization

svn at osgeo.org svn at osgeo.org
Fri May 7 15:43:44 EDT 2010


Author: jmckenna
Date: 2010-05-07 15:43:43 -0400 (Fri, 07 May 2010)
New Revision: 10145

Modified:
   trunk/docs/en/optimization/debugging.txt
Log:
minor change for older MS versions

Modified: trunk/docs/en/optimization/debugging.txt
===================================================================
--- trunk/docs/en/optimization/debugging.txt	2010-05-07 19:28:12 UTC (rev 10144)
+++ trunk/docs/en/optimization/debugging.txt	2010-05-07 19:43:43 UTC (rev 10145)
@@ -480,7 +480,7 @@
        INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
        DEBUG=MSDEBUG 
 
-2. Set the *MS_ERRORFILE** variable is in your mapfile, within the :ref:`MAP` object, 
+2. Set the *MS_ERRORFILE* variable is in your mapfile, within the :ref:`MAP` object, 
    such as:
 
    .. code-block:: mapfile
@@ -493,14 +493,32 @@
          ...
        END
      END
+     
+3. If you don't use the *MS_ERRORFILE* variable, you can use the LOG parameter in
+   your :ref:`WEB` object of the mapfile, such as:
+   
+   .. code-block:: mapfile
 
-3. Specify *DEBUG ON* in your MAP object, or in your LAYER objects, such as:
+      MAP
+       ...
+       WEB
+         LOG "mapserver.log"
+       END
+       ...
+       LAYER
+         ...
+       END
+     END   
 
+4. Specify *DEBUG ON* in your MAP object, or in your LAYER objects, such as:
+
    .. code-block:: mapfile
 
       MAP
        ...
-       CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt"
+       WEB
+         LOG "mapserver.log"
+       END       
        DEBUG ON
        ...
        LAYER
@@ -508,7 +526,7 @@
        END
      END
 
-4. Note that only errors will be written to the log file; all DEBUG output 
+5. Note that only errors will be written to the log file; all DEBUG output 
    goes to stderr, in the case of Apache that is Apache's *error_log* file. If you are 
    using Microsoft IIS, debug output is routed to *stdout* (i.e. the browser), so be sure 
    to remove *DEBUG ON* statements if using IIS on a production server.



More information about the mapserver-commits mailing list