QGIS API Documentation 3.41.0-Master (64d82d4c163)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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 323 of file qgsprojutils.h.

Constructor & Destructor Documentation

◆ QgsScopedProjSilentLogger()

QgsScopedProjSilentLogger::QgsScopedProjSilentLogger ( )

Constructor for QgsScopedProjSilentLogger.

PROJ errors will be ignored.

Definition at line 664 of file qgsprojutils.cpp.

◆ ~QgsScopedProjSilentLogger()

QgsScopedProjSilentLogger::~QgsScopedProjSilentLogger ( )

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

Definition at line 669 of file qgsprojutils.cpp.


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