node-mapnik icon indicating copy to clipboard operation
node-mapnik copied to clipboard

Turning on logging of the Mapnik SQL query during map rendering

Open kolisko opened this issue 2 years ago • 1 comments

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);

kolisko avatar Feb 12 '23 15:02 kolisko

In my experience the most useful and easy thing to do is to turn on logging at the database level.

springmeyer avatar Feb 16 '23 16:02 springmeyer