GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-602118adcc
|
GIS Library - Subroutines to manage verbosity level. More...
Go to the source code of this file.
Macros | |
#define | MAXLEVEL 3 |
Maximum verbosity level. More... | |
#define | STDLEVEL 2 |
Standard verbosity level. More... | |
#define | MINLEVEL 0 |
Minimum verbosity level (quiet) More... | |
Functions | |
int | G_verbose (void) |
Get current verbosity level. More... | |
int | G_verbose_max (void) |
Get max verbosity level. More... | |
int | G_verbose_std (void) |
Get standard verbosity level. More... | |
int | G_verbose_min (void) |
Get min verbosity level. More... | |
int | G_set_verbose (int level) |
Set verbosity level. More... | |
GIS Library - Subroutines to manage verbosity level.
Note that verbosity can be controlled by GRASS_VERBOSE environment variable.
See relevant subroutines:
(C) 2001-2008, 2012-2013 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file verbose.c.
int G_set_verbose | ( | int | level | ) |
Set verbosity level.
–q
or –quiet
flag.–v
or –verbose
flag.level | new verbosity level (-1,0,1,2,3) |
Definition at line 125 of file verbose.c.
References G_initialize_done(), G_is_initialized(), MAXLEVEL, MINLEVEL, and st.
int G_verbose | ( | void | ) |
Get current verbosity level.
Currently, there are 5 levels of verbosity (see return codes)
–q
or –quiet
flag.. –v
or –verbose
flag. Definition at line 60 of file verbose.c.
References G_initialize_done(), G_is_initialized(), st, and STDLEVEL.
Referenced by G_fatal_error(), G_important_message(), G_init_all(), G_message(), G_verbose_message(), and notice_processor().
int G_verbose_max | ( | void | ) |
int G_verbose_min | ( | void | ) |
Get min verbosity level.
Definition at line 101 of file verbose.c.
References MINLEVEL.
Referenced by G_important_message().
int G_verbose_std | ( | void | ) |
Get standard verbosity level.
Definition at line 91 of file verbose.c.
References STDLEVEL.
Referenced by G_message(), G_parser(), G_verbose_message(), and notice_processor().