QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsScopedProjSilentLogger Class Reference

Scoped object for temporary suppression of PROJ logging output. More...

#include <qgsprojutils.h>

Public Member Functions

 QgsScopedProjSilentLogger ()
 Constructor for QgsScopedProjSilentLogger.
 ~QgsScopedProjSilentLogger ()
 Returns the PROJ logger back to the default QGIS PROJ logger.

Detailed Description

Scoped object for temporary suppression of PROJ logging output.

Temporarily sets the PROJ log function to one which suppresses errors for the lifetime of the object, before returning it to the default QGIS proj logging function on destruction.

Note
The collecting logger ONLY applies to the current thread.
Not available in Python bindings
Since
QGIS 3.42

Definition at line 325 of file qgsprojutils.h.

Constructor & Destructor Documentation

◆ QgsScopedProjSilentLogger()

QgsScopedProjSilentLogger::QgsScopedProjSilentLogger ( )

Constructor for QgsScopedProjSilentLogger.

PROJ errors will be ignored.

Definition at line 666 of file qgsprojutils.cpp.

◆ ~QgsScopedProjSilentLogger()

QgsScopedProjSilentLogger::~QgsScopedProjSilentLogger ( )

Returns the PROJ logger back to the default QGIS PROJ logger.

Definition at line 671 of file qgsprojutils.cpp.


The documentation for this class was generated from the following files: