From fc829422f0aeff48b5458b14d8fc7e06ad428835 Mon Sep 17 00:00:00 2001 From: bramjanssen Date: Mon, 18 Dec 2023 09:57:56 +0100 Subject: [PATCH] docs(#517): added logging to job manager docs --- openeo/extra/job_management.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openeo/extra/job_management.py b/openeo/extra/job_management.py index 3e67fc1f3..5e5ca53d6 100644 --- a/openeo/extra/job_management.py +++ b/openeo/extra/job_management.py @@ -38,10 +38,16 @@ class MultiBackendJobManager: .. code-block:: python + import logging import pandas as pd import openeo from openeo.extra.job_management import MultiBackendJobManager + logging.basicConfig( + format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', + level=logging.INFO + ) + manager = MultiBackendJobManager() manager.add_backend("foo", connection=openeo.connect("http://foo.test")) manager.add_backend("bar", connection=openeo.connect("http://bar.test"))