Ben Finney <ben+pyt...@benfinney.id.au> wrote: > c...@isbd.net writes: > > > If I do:- > > > > f = logging.handlers.RotatingFileHandler("/home/chris/tmp/mail.log", > > 'a', 1000000, 4) > > f.setLevel(logging.DEBUG) > > formatter = logging.Formatter('%(message)s') > > f.setFormatter(formatter) > > log.addHandler(f) > > > > Will I get just the message with no extras added by the logging module? > > Yuo have the code, and presumably the system on which to test it. What's > the answer? > Very true, I thought the code was going to be much longer than that. :-)
... and the answer is, yes, with the above I just get the message text which is what I want. -- Chris Green ยท -- https://mail.python.org/mailman/listinfo/python-list