From bffb6767aaddd22f73456fc024b8e9a3b85fde8c Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 24 Feb 2013 01:48:42 +0000 Subject: [PATCH] [r21281] grampslocale: Pretty up the log messages. svn: r21420 --- gramps/gen/utils/grampslocale.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index 985426e6e..40bee82bd 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -31,8 +31,10 @@ import sys import os import locale import logging -LOG = logging.getLogger("gramps.gen.util.grampslocale") -LOG.addHandler(logging.StreamHandler()) +LOG = logging.getLogger("grampslocale") +_hdlr = logging.StreamHandler() +_hdlr.setFormatter(logging.Formatter(fmt="%(name)s.%(levelname)s: %(message)s")) +LOG.addHandler(_hdlr) HAVE_ICU = False try: from icu import Locale, Collator