logging support

svn: r6081
This commit is contained in:
Don Allingham 2006-03-05 04:45:44 +00:00
parent fcdf07ccdd
commit b5934e134e
17 changed files with 144 additions and 8 deletions

View File

@ -28,6 +28,14 @@
from gettext import gettext as _
import os
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".Assistant")
#-------------------------------------------------------------------------
#
# GTK modules

View File

@ -27,6 +27,14 @@
#-------------------------------------------------------------------------
import locale
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".AutoComp")
#-------------------------------------------------------------------------
#
# GNOME modules

View File

@ -76,6 +76,14 @@ from math import pi, cos, sin
import Utils
import FontScale
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".BaseDoc")
#-------------------------------------------------------------------------
#
# SAX interface

View File

@ -33,6 +33,14 @@ __version__ = "$Revision$"
from gettext import gettext as _
from cStringIO import StringIO
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".Bookmarks")
#-------------------------------------------------------------------------
#
# GTK/Gnome modules

View File

@ -31,6 +31,14 @@ import gc
import const
from gettext import gettext as _
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".ColumnOrder")
class ColumnOrder:
def __init__(self,arglist,column_names,callback):

View File

@ -28,10 +28,34 @@ localized tasks.
__author__ = "Donald N. Allingham"
__version__ = "$Revision$"
#-------------------------------------------------------------------------
#
# python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".DateDisplay")
#-------------------------------------------------------------------------
#
# GRAMPS modules
#
#-------------------------------------------------------------------------
from RelLib import Date
import GrampsLocale
#-------------------------------------------------------------------------
#
# DateDisplay
#
#-------------------------------------------------------------------------
class DateDisplay:
_months = GrampsLocale.long_months

View File

@ -44,6 +44,14 @@ __version__ = "$Revision$"
from gettext import gettext as _
import gc
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".DateEdit")
#-------------------------------------------------------------------------
#
# GNOME modules

View File

@ -32,6 +32,14 @@ Class handling language-specific selection for date parser and displayer.
import os
import locale
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".DateHandler")
#-------------------------------------------------------------------------
#
# GRAMPS modules

View File

@ -37,6 +37,14 @@ __version__ = "$Revision$"
import re
import calendar
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".DateParser")
#-------------------------------------------------------------------------
#
# GRAMPS modules

View File

@ -46,6 +46,15 @@
"""
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".DdTargets")
class _DdType:
"""Represents the fields needed by a drag and drop traget."""

View File

@ -27,6 +27,7 @@
import time
from gettext import gettext as _
import locale
import logging
log = logging.getLogger(".")

View File

@ -27,6 +27,14 @@
#-------------------------------------------------------------------------
from cStringIO import StringIO
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".DisplayState")
#-------------------------------------------------------------------------
#
# GNOME python modules
@ -516,13 +524,6 @@ class ManagedWindow:
"""
self.window.present()
#-------------------------------------------------------------------------
#
# Gramps Display State class
#
#-------------------------------------------------------------------------
import logging
from GrampsLogger import RotateHandler
class WarnHandler(RotateHandler):

View File

@ -43,6 +43,14 @@ except:
from sets import Set as set
print "set not used"
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".DisplayTabs")
#-------------------------------------------------------------------------
#
# GRAMPS libraries

View File

@ -30,6 +30,14 @@
import os
from gettext import gettext as _
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".Exporter")
#-------------------------------------------------------------------------
#
# Gnome modules

View File

@ -40,6 +40,14 @@ import os
import sets
from gettext import gettext as _
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".GenericFilter")
#-------------------------------------------------------------------------
#
# gtk

View File

@ -37,6 +37,14 @@ try:
except:
from sets import Set as set
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".")
#-------------------------------------------------------------------------
#
# GTK modules
@ -248,7 +256,6 @@ class PeopleModel(gtk.GenericTreeModel):
self.prev_handle = node
return COLUMN_DEFS[col][COLUMN_DEF_LIST](self,self.prev_data,node)
except:
print "".join(traceback.format_exception(*sys.exc_info()))
return u'error'
def on_iter_next(self, node):

View File

@ -29,6 +29,12 @@ from gettext import gettext as _
from bsddb import db
import os
from cStringIO import StringIO
#-------------------------------------------------------------------------
#
# set up logging
#
#-------------------------------------------------------------------------
import logging
log = logging.getLogger(".")