Added examples to explain how use Oslo Context with Oslo Log. Change-Id: I5b5d2ee152b305316b68c5b34d00f480c7daf5ba
38 lines
715 B
ReStructuredText
38 lines
715 B
ReStructuredText
==========
|
|
Examples
|
|
==========
|
|
|
|
.. _examples:
|
|
|
|
These files can be found in the doc/source/examples directory of
|
|
the git source of this project. They can also be found at the
|
|
`online git respository`_ of this project.
|
|
|
|
.. _online git respository: http://git.openstack.org/cgit/openstack/oslo.context/tree/doc/source/examples
|
|
|
|
|
|
.. _example_usage_simple.py:
|
|
|
|
usage_simple.py
|
|
---------------
|
|
|
|
.. highlight:: python
|
|
.. literalinclude:: examples/usage_simple.py
|
|
:linenos:
|
|
|
|
.. _example_usage.py:
|
|
|
|
usage.py
|
|
--------
|
|
|
|
.. literalinclude:: examples/usage.py
|
|
:linenos:
|
|
|
|
.. _example_usage_user_identity.py:
|
|
|
|
usage_user_identity.py
|
|
----------------------
|
|
|
|
.. literalinclude:: examples/usage_user_identity.py
|
|
:linenos:
|