dabo Commit
Revision 3460
Date: 2007-10-12 09:38:00 -0700 (Fri, 12 Oct 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3460
Changed:
U trunk/dabo/__init__.py
U trunk/dabo/dEvents.py
Log:
Created a separate eventLog object, and changed the _logEvent() method to write
to it. It defaults to sys.stdout, but it will be useful to be able to log
events separately someday in the IDE.
Diff:
Modified: trunk/dabo/__init__.py
===================================================================
--- trunk/dabo/__init__.py 2007-10-12 15:52:23 UTC (rev 3459)
+++ trunk/dabo/__init__.py 2007-10-12 16:38:00 UTC (rev 3460)
@@ -137,6 +137,10 @@
errorLog = Log()
errorLog.Caption = "Dabo Error Log"
errorLog.LogObject = sys.stderr
+# Create a separate log reference for event tracking.
+eventLog = Log()
+eventLog.Caption = "Dabo Event Log"
+eventLog.LogObject = sys.stdout
# This log is set to None by default. It must be manually activated
# via the Application object.
dbActivityLog = Log()
Modified: trunk/dabo/dEvents.py
===================================================================
--- trunk/dabo/dEvents.py 2007-10-12 15:52:23 UTC (rev 3459)
+++ trunk/dabo/dEvents.py 2007-10-12 16:38:00 UTC (rev 3460)
@@ -93,7 +93,7 @@
if eventName not in noLogEvents:
for logEventName in logEvents:
if logEventName.lower() == "all" or
logEventName == eventName:
- dabo.infoLog.write("dEvent Fired: %s
%s" %
+ dabo.eventLog.write("dEvent Fired: %s
%s" %
(self._eventObject.getAbsoluteName(),
self.__class__.__name__,))
break
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]