1 Oct
2009
1 Oct
'09
7:21 a.m.
On Oct 1, 2009, at 2:51 AM, Vinay Sajip wrote:
You're already covered if you use the PercentMessage/BraceMessage approach I mentioned 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