(original) (raw)

changeset: 70999:fcf242243d46 parent: 70997:d4aeeddf72e3 parent: 70998:1ed71544fceb user: Raymond Hettinger python@rcn.com date: Sun Jun 26 15:29:27 2011 +0200 description: Issue #8890: Remove /tmp from examples. diff -r d4aeeddf72e3 -r fcf242243d46 Doc/howto/logging-cookbook.rst --- a/Doc/howto/logging-cookbook.rst Sun Jun 26 14:30:25 2011 +0200 +++ b/Doc/howto/logging-cookbook.rst Sun Jun 26 15:29:27 2011 +0200 @@ -723,7 +723,7 @@ # The size of the rotated files is made small so you can see the results easily. def listener_configurer(): root = logging.getLogger() - h = logging.handlers.RotatingFileHandler('/tmp/mptest.log', 'a', 300, 10) + h = logging.handlers.RotatingFileHandler('mptest.log', 'a', 300, 10) f = logging.Formatter('%(asctime)s %(processName)-10s %(name)s %(levelname)-8s %(message)s') h.setFormatter(f) root.addHandler(h) /python@rcn.com