début d'organisation du logging.
[minwii.git] / src / app / log.py
diff --git a/src/app/log.py b/src/app/log.py
new file mode 100755 (executable)
index 0000000..457866b
--- /dev/null
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+"""
+utilitaires pour tracer l'activité de miiwii
+
+$Id$
+$URL$
+"""
+
+from events import TIMEOUT, COLOVER, eventNames
+from event_pprinters import pprinters
+import sys
+import pygame
+from logging import basicConfig, getLogger, DEBUG
+
+basicConfig(level=DEBUG, stream = sys.stdout)
+console = getLogger('minwii')
+eventLog = getLogger('minwii.events')
+
+hiddenEvents = {pygame.MOUSEMOTION:True,
+                TIMEOUT:True,
+                #COLOVER:True,
+                }