Added a logger for more maintainable and configurable debug messages.

Fixed a bug with context setting so that all children are updated on
context update.
This commit is contained in:
Joey Payne 2014-02-06 11:21:22 -07:00
commit 49a630e8ac
5 changed files with 28 additions and 6 deletions

1
jgui/logger/__init__.py Normal file
View file

@ -0,0 +1 @@
from jgui.logger.logger import *

6
jgui/logger/logger.py Normal file
View file

@ -0,0 +1,6 @@
from __future__ import print_function
from jgui.settings import DEBUG
def log(*args):
if DEBUG:
print(*args)