Commit Graph

12 Commits

Author SHA1 Message Date
Luis Rueda f20a2f63c4 Update logging.rst
Update to include changes proposed in issue #794
2017-02-23 13:48:52 -05:00
Tom bdf3e1ea92 Fix incorrect dictConfig example
dictConfig expects a special `root` key outside of the `loggers` subdictionary in order to configure the root logger. I've tried the existing example code on python 2.7.5 and 3.5.1, and in neither case does the final log line produce any output (because the root logger remains set to `looging.WARN` by default). 

Changing the example to use the `root` key causes the log message to appear properly.

The `root` key is explained in PEP391: https://www.python.org/dev/peps/pep-0391/#dictionary-schema-detail
2016-05-10 17:05:23 -06:00
Vincent Zee 7e385158c7 Corrected lines to be no longer than 78 characters 2015-03-01 16:27:06 +01:00
Michael Dunn 2b15ec8af2 Update logging.rst
Removed whitespace in violation of PEP 8 and aligned lines.
2015-02-10 21:06:36 -05:00
Michael Dunn 86d29a3c77 Update logging.rst
The name of a dictionary key `root` was not properly enclosed in quotes, which results in a syntax error when people copy this code.

Thanks!
2015-02-10 18:16:14 -05:00
Michael Dunn 4ffb7ff3d8 Update logging.rst
The PEP referenced for configuring logging via - '319' should be '391'.
Just a simple fix.
2015-02-10 17:15:18 -05:00
Ian Cordasco 0f797099e1 Change logging_config extension to ini 2015-01-18 09:59:38 -06:00
Tanya Schlusser df7a22568b Italic pro/con to bold, and '--' to colon after the pro/con 2015-01-17 21:43:22 -06:00
Tanya Schlusser 0c1551ae85 Added pro / con bullets to the list of ways to configure a logger 2015-01-17 21:09:52 -06:00
Tanya Schlusser 1cfb637cb1 Removed a stray capitalization and improved the grammar in the 'print' vs 'logging' section 2015-01-17 21:05:56 -06:00
Tanya Schlusser 7c37ec8396 Modified the new writing/logging.rst according to comments on the initial pull request 2015-01-17 20:59:53 -06:00
Tanya Schlusser 7ff1d0006f First attemt at a section on logging. 2015-01-17 11:55:26 -06:00