[Qgis-developer] prints to std::cout in qgis

Martin Dobias wonder.sk at gmail.com
Wed Mar 22 14:16:34 EST 2006


On 3/22/06, Mateusz Łoskot <mateusz at loskot.net> wrote:
> Martin Dobias wrote:
> > Moreover it would be good to have some constants or so, which will
> > indicate what kind of debug message is it - e.g. notice, warning,
> > error, fatal. Then, a call like
> >
> > DEBUG_PRINT(NOTICE, "This is just a notice")
>
> I'd name all QGIS related macros starting from QGIS_,
> e.g. QGIS_DEBUG_PRINT or QGIS_DEBUG_MSG
>
> There were problems with GEOS on Windows, because it used macro named as
> DEBUG, which is defined and used by VC++ compiler.
> So, it had to be changed to GEOS_DEBUG.
>
> > would produce e.g.:
> > NOTICE: This is just a notice.
>
> Do you mean this additional argument should control
> what is placed in front of the message?
> Examples:
>
> ERROR: This is an error
> or for better readability:
>
> #
> # ERROR: This is an error
> #
>
> WARNING: This is a warning
> NOTICE: This is a note
>
> ?

I meant it could help users (and developers) to find out what does the
message actually mean when they don't know exactly what does it mean
and whether they should report it. Btw. good idea that errors could be
printed with such emphasis.

Martin

>
> Cheers
> --
> Mateusz Łoskot
> http://mateusz.loskot.net
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>


More information about the Qgis-developer mailing list