Mercurial > libervia-backend
comparison frontends/src/wix/wix @ 1011:5a6354ff468c
wix: use of new logging system
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 05 May 2014 20:12:21 +0200 |
parents | 42ee0b0b0a15 |
children | a836b6da2c5c |
comparison
equal
deleted
inserted
replaced
1010:73a0b7f94674 | 1011:5a6354ff468c |
---|---|
16 | 16 |
17 # You should have received a copy of the GNU Affero General Public License | 17 # You should have received a copy of the GNU Affero General Public License |
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 |
20 | 20 |
21 from sat_frontends.wix.constants import Const as C | |
22 from sat.core import log | |
23 log.satConfigure(C.LOG_BACKEND_STANDARD, C) | |
21 import wx | 24 import wx |
22 from sat_frontends.bridge.DBus import DBusBridgeFrontend | |
23 import logging | |
24 from logging import debug, info, error | |
25 from sat_frontends.wix.main_window import MainWindow | 25 from sat_frontends.wix.main_window import MainWindow |
26 | |
27 ### logging configuration FIXME: put this elsewhere ### | |
28 logging.basicConfig(level=logging.DEBUG, | |
29 format='%(message)s') | |
30 ### | |
31 | 26 |
32 | 27 |
33 class SATApp(wx.App): | 28 class SATApp(wx.App): |
34 def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): | 29 def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): |
35 super(SATApp,self).__init__(redirect, filename, useBestVisual, clearSigInt) | 30 super(SATApp,self).__init__(redirect, filename, useBestVisual, clearSigInt) |