node-mapnik
node-mapnik copied to clipboard
Turning on logging of the Mapnik SQL query during map rendering
I have connected Mapnik to PostGIS and I am using a datasource. I would like to view the SQL query that is executed when the render() method is called. I have attempted this without success. Any idea?
(mapnik as any).logger.set_severity((mapnik as any).severity_type.Debug);
(mapnik as any).Logger.setSeverity((mapnik as any).Logger.DEBUG);
In my experience the most useful and easy thing to do is to turn on logging at the database level.