Added Event classes to pyrisk.log
authorW. Trevor King <wking@drexel.edu>
Sat, 27 Mar 2010 01:30:50 +0000 (21:30 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 27 Mar 2010 01:30:50 +0000 (21:30 -0400)
commitec736930138c2d912fdbf74db8c14390f0e38a5b
treec81e01a57db699cfbe1d24dc02c2ddb255c6a726
parent9590b1461f83f838aca45bad2d70da61c337c1f9
Added Event classes to pyrisk.log

This should make logging easier to configure.  For example, a
Player.report function now has access to the raw data used to compose
the string.  Well, if the mutables haven't changed ;).  If that's an
issue for you, stick some copy.deepcopy calls into the Event subclass
__init__ definitions.
pyrisk/base.py
pyrisk/log.py