# Module background_thread (3.16.0)

3.16.0 (latest) 3.15.0 3.13.0 3.12.1 3.11.3 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.1 3.2.5 3.1.2 3.0.0 2.7.2 2.6.0 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.2 1.15.3 1.14.0 1.13.0 1.12.1 Transport for Python logging handler

Uses a background worker to log to Cloud Logging asynchronously.

## Classes

### [BackgroundThreadTransport](https://docs.cloud.google.com/python/docs/reference/logging/latest/google.cloud.logging_v2.handlers.transports.background_thread.BackgroundThreadTransport)

    BackgroundThreadTransport(
        client,
        name,
        *,
        grace_period=5.0,
        batch_size=10,
        max_latency=0,
        resource=Resource(type="global", labels={}),
        **kwargs
    )

Asynchronous transport that uses a background thread.