Skip to content
Myr

Fixed a wrong import path in the documentation. Fixes #102

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent c41a1cd · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/errorhandling.rst+2 added-2 removed
87 unmodified lines
88There are a couple of handlers provided by the logging system out of the89box but not all of them are useful for basic error logging. The most90interesting are probably the following:9192- :class:`~logging.handlers.FileHandler` - logs messages to a file on the92- :class:`~logging.FileHandler` - logs messages to a file on the93 filesystem.94- :class:`~logging.handlers.RotatingFileHandler` - logs messages to a file95 on the filesystem and will rotate after a certain number of messages.96- :class:`~logging.handlers.NTEventLogHandler` - will log to the system
7 unmodified lines
104`WARNING`)::105106 if not app.debug:107 import logging108 from logging.handlers import TheHandlerYouWant108 from themodule import TheHandler YouWant109 file_handler = TheHandlerYouWant(...)110 file_handler.setLevel(logging.WARNING)111 app.logger.addHandler(file_handler)112
125 unmodified lines