[r21281] grampslocale: Pretty up the log messages.

svn: r21420
This commit is contained in:
John Ralls 2013-02-24 01:48:42 +00:00
parent 0c07855f37
commit bffb6767aa

View File

@ -31,8 +31,10 @@ import sys
import os import os
import locale import locale
import logging import logging
LOG = logging.getLogger("gramps.gen.util.grampslocale") LOG = logging.getLogger("grampslocale")
LOG.addHandler(logging.StreamHandler()) _hdlr = logging.StreamHandler()
_hdlr.setFormatter(logging.Formatter(fmt="%(name)s.%(levelname)s: %(message)s"))
LOG.addHandler(_hdlr)
HAVE_ICU = False HAVE_ICU = False
try: try:
from icu import Locale, Collator from icu import Locale, Collator