On Oct 1, 2009, at 2:51 AM, Vinay Sajip wrote:
You're already covered if you use the PercentMessage/BraceMessage approach Imentioned elsewhere in this thread. Suppose:#Just typing this in, it's not tested or anything class DollarMessage: def __init__(self, fmt, *args, **kwargs): self.fmt = fmt self.args = args self.kwargs = kwargs def __str__(self): return string.Template(self.fmt).substitute(*args, **kwargs)
Right, thanks. This is a very cool feature that I didn't know logging supported!
-Barry
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com