Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Unified Diff: Doc/howto/logging-cookbook.rst

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/distutils/setupscript.rst ('k') | Doc/howto/urllib2.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/howto/logging-cookbook.rst Tue Jul 26 09:37:46 2011 +0300
+++ b/Doc/howto/logging-cookbook.rst Mon Jul 25 09:47:18 2011 -0400
@@ -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('mptest.log', 'a', 300, 10)
+ h = logging.handlers.RotatingFileHandler('/tmp/mptest.log', 'a', 300, 10)
f = logging.Formatter('%(asctime)s %(processName)-10s %(name)s %(levelname)-8s %(message)s')
h.setFormatter(f)
root.addHandler(h)
« no previous file with comments | « Doc/distutils/setupscript.rst ('k') | Doc/howto/urllib2.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+