Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
google/ | H | 02-Nov-2021 | - | 20,282 | 15,243 | |
google_cloud_logging.egg-info/ | H | 03-May-2022 | - | 111 | 82 | |
tests/ | H | 02-Nov-2021 | - | 19,452 | 14,119 | |
LICENSE | H A D | 02-Nov-2021 | 11.1 KiB | 203 | 169 | |
MANIFEST.in | H A D | 02-Nov-2021 | 860 | 26 | 23 | |
PKG-INFO | H A D | 02-Nov-2021 | 3.6 KiB | 111 | 82 | |
README.rst | H A D | 02-Nov-2021 | 2.8 KiB | 87 | 61 | |
setup.cfg | H A D | 02-Nov-2021 | 67 | 8 | 5 | |
setup.py | H A D | 02-Nov-2021 | 3.1 KiB | 98 | 56 |
README.rst
1Python Client for Cloud Logging 2===================================== 3 4|pypi| |versions| 5 6`Cloud Logging API`_: Writes log entries and manages your Cloud 7Logging configuration. 8 9- `Client Library Documentation`_ 10- `Product Documentation`_ 11 12.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-logging.svg 13 :target: https://pypi.org/project/google-cloud-logging/ 14.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-logging.svg 15 :target: https://pypi.org/project/google-cloud-logging/ 16.. _Cloud Logging API: https://cloud.google.com/logging 17.. _Client Library Documentation: https://googleapis.dev/python/logging/latest 18.. _Product Documentation: https://cloud.google.com/logging/docs 19.. _Setting Up Cloud Logging for Python: https://cloud.google.com/logging/docs/setup/python 20.. _Python's standard logging library: https://docs.python.org/2/library/logging.html 21 22Quick Start 23----------- 24 25In order to use this library, you first need to go through the following steps: 26 271. `Select or create a Cloud Platform project.`_ 282. `Enable billing for your project.`_ 293. `Enable the Cloud Logging API.`_ 304. `Setup Authentication.`_ 31 32.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project 33.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project 34.. _Enable the Cloud Logging API.: https://cloud.google.com/logging 35.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html 36 37Installation 38~~~~~~~~~~~~ 39 40Install this library in a `venv`_ using pip. `venv`_ is a tool to 41create isolated Python environments. The basic problem it addresses is one of 42dependencies and versions, and indirectly permissions. 43 44With `venv`_, it's possible to install this library without needing system 45install permissions, and without clashing with the installed system 46dependencies. 47 48.. _`venv`: https://docs.python.org/3/library/venv.html 49 50 51Supported Python Versions 52^^^^^^^^^^^^^^^^^^^^^^^^^ 53Python >= 3.6 54 55Unsupported Python Versions 56^^^^^^^^^^^^^^^^^^^^^^^^^^^ 57Python == 2.7. The last version of the library compatible with Python 2.7 is `google-cloud-logging==1.15.1`. 58 59 60Mac/Linux 61^^^^^^^^^ 62 63.. code-block:: console 64 65 python -m venv <your-env> 66 source <your-env>/bin/activate 67 <your-env>/bin/pip install google-cloud-logging 68 69 70Windows 71^^^^^^^ 72 73.. code-block:: console 74 75 python -m venv <your-env> 76 <your-env>\Scripts\activate 77 <your-env>\Scripts\pip.exe install google-cloud-logging 78 79Next Steps 80~~~~~~~~~~ 81 82- Read the `Setting Up Cloud Logging for Python`_ How-to Guide 83- Read the `Product documentation`_ to learn more about the product and see 84 other How-to Guides. 85- Read the `Client Library Documentation`_ for to see other available 86 methods on the client. 87