diff frontends/src/primitivus/xmlui.py @ 1010:73a0b7f94674

primitivus: use of new logging system: - default output is \\memory - logs can be seen with :messages command - now useless writeLog method has been removed
author Goffi <goffi@goffi.org>
date Mon, 05 May 2014 20:12:19 +0200
parents 68faf7d77a42
children ad023e60da8c
line wrap: on
line diff
--- a/frontends/src/primitivus/xmlui.py	Mon May 05 18:58:34 2014 +0200
+++ b/frontends/src/primitivus/xmlui.py	Mon May 05 20:12:19 2014 +0200
@@ -21,7 +21,8 @@
 import urwid
 import copy
 from urwid_satext import sat_widgets
-from logging import debug, info, warning, error
+from sat.core.log import getLogger
+log = getLogger(__name__)
 from xml.dom import minidom
 from sat_frontends.tools import xmlui
 
@@ -74,7 +75,7 @@
         elif style == 'blank':
             div_char = ' '
         else:
-            warning(_("Unknown div_char"))
+            log.warning(_("Unknown div_char"))
             div_char = u'─'
 
         urwid.Divider.__init__(self, div_char)