log.py: a simple log class.