Handler that directly makes Stackdriver logging API calls.
Install the Google provider package into your Airflow environment.
Import the module into your DAG file and instantiate it with your desired params.
This is a Python standard
logging handler using that can be used to route Python standard logging messages directly to the Stackdriver Logging API.
It can also be used to save logs for executing tasks. To do this, you should set as a handler with the name “tasks”. In this case, it will also be used to read the log for display in Web UI.
This handler supports both an asynchronous and synchronous transport.
Improve this module by creating an example DAG.View Source
- Add an `example_dags` directory to the top-level source of the provider package with an empty `__init__.py` file.
- Add your DAG to this directory. Be sure to include a well-written and descriptive docstring
- Create a pull request against the source code. Once the package gets released, your DAG will show up on the Registry.