Skip to content

Commit

Permalink
Fix syntax errors and resolve rstcheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilland committed Dec 25, 2014
1 parent e0c1b17 commit ed1bdae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Use ``Flask-LogConfig`` to easily configure the Python logging module using your
'fromaddr': 'Mailer <mailer@example.com>',
'toaddrs': ['admins@example.com'],
'subject': 'Application Error',
'credentials': (mailer@example.com, 'password'),
'credentials': ('mailer@example.com', 'password'),
'secure': ()
},
'console': {
Expand Down Expand Up @@ -106,7 +106,7 @@ Use ``Flask-LogConfig`` to easily configure the Python logging module using your
Configuration
=============

Configuration of Python's logging module is specified using the standard ``dictConfig`` or ``fileConfig`` formats supported by `logging.config <https://docs.python.org/library/logging.config.html>`_. This allows Flaks apps to be configured as one would in a Django app that uses `Logging <https://docs.djangoproject.com/en/1.7/topics/logging/>`_.
Configuration of Python's logging module is specified using the standard ``dictConfig`` or ``fileConfig`` formats supported by `logging.config <https://docs.python.org/library/logging.config.html>`_. This allows Flaks apps to be configured as one would in a Django app that uses `logging <https://docs.djangoproject.com/en/1.7/topics/logging/>`__.


LOGGING
Expand Down Expand Up @@ -178,6 +178,7 @@ It's also safe to use ``request_context_from_record`` from directly inside Flask
with request_context_from_record():
# do something using Flask request globals
pass
If no request context exists (either on the log record provided or inside the actual Flask request context), then a ``flask_logconfig.FlaskLogConfigException`` will be thrown.
Expand Down

0 comments on commit ed1bdae

Please sign in to comment.