mapnik-org/mapnik — Issue #148: Options for controlling Mapnik debugging output
Author: artemp
Created: 2011-10-11 07:38:20+00:00
State: open
Labels: Core_Library

It would be useful, if mapnik is build in debug mode, to be able to control the debug output at runtime.

Two options come to mind:

1) Allowing for the ability to write the debug output to a file

2) Allowing for the debug output to be turned on or off with an environment setting.

IE. The GDAL C++ code has a shell environment setting in addition to the compile time option, to allow control of debug output.

It seems like this might be a useful thing to consider in the Mapnik codebase. I'm not aware of how this should/could work but CPL_DEBUG is what GDAL uses and is documented here:

http://www.gdal.org/ogr/cpl__error_8h.html

Boost must have a similar but better option...