10 from core.debug import Debug
11 Debug.msg (3, 'debug message')
14 (C) 2007-2009, 2011 by the GRASS Development Team
16 This program is free software under the GNU General Public License
17 (>=v2). Read the file COPYING that comes with GRASS for details.
19 @author Martin Landa <landa.martin gmail.com>
31 g.gisenv set=WX_DEBUG=[0-5]
41 """!Initialize gui debug level
43 self.
debuglevel = int(grass.gisenv().get(
'WX_DEBUG', 0))
45 def msg(self, level, message, *args):
46 """!Print debug message
48 @param level debug level (0-5)
49 @param message message to be printed
50 @param *args formatting params
55 sys.stderr.write(
"GUI D%d/%d: " % (level, self.
debuglevel) + \
56 message % args + os.linesep)
58 sys.stderr.write(
"GUI D%d/%d: " % (level, self.
debuglevel) + \
63 """!Return current GUI debug level"""
def msg
Print debug message.
def GetLevel
Return current GUI debug level.
def SetLevel
Initialize gui debug level.