grampslocale: Pretty up the log messages.

svn: r21281
This commit is contained in:
John Ralls 2013-02-03 02:05:06 +00:00
parent ffdb23230d
commit 5596d0c47e

View File

@ -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