From 64eafb98f988818de423e91f662817cf2b94942f Mon Sep 17 00:00:00 2001 From: Thomas B Thompson Date: Fri, 24 Dec 2010 03:18:43 -0500 Subject: done with logging stuff -- pretty simple, just need to import from logger module and then run something like "main_log.debug("text")" --- LightInstallation.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'LightInstallation.py') diff --git a/LightInstallation.py b/LightInstallation.py index e4adab7..87aa629 100644 --- a/LightInstallation.py +++ b/LightInstallation.py @@ -3,10 +3,13 @@ from pixelcore.Screen import * from pixelcore.PixelStrip import * import pdb, sys, time, Util, thread from pygame.locals import * +from logger import main_log #Python class to instantiate and drive a Screen through different patterns, #and effects. class LightInstallation: def __init__(self, configFileName): + main_log.critical("hi russell, i'm sending info to the log files") + main_log.critical("initializing based on file: " + str(configFileName)) self.timer = Util.Stopwatch() self.timer.start() self.inputs = {} #dict of inputs and their bound behaviors, keyed by InputId @@ -45,6 +48,7 @@ class LightInstallation: self.timer.stop() print 'Initialization done. Time: ', self.timer.elapsed(), 'ms' self.mainLoop() + def initializeMapper(self, mapperConfig): self.mapper = self.initializeComponent(mapperConfig)[0] #TODO: support #multiple mappers -- cgit v1.2.3