Python Logging Handler Threaded Transport#
Transport for Python logging handler
Uses a background worker to log to Stackdriver Logging asynchronously.
-
class
google.cloud.logging.handlers.transports.background_thread.BackgroundThreadTransport(client, name)[source]# Bases:
google.cloud.logging.handlers.transports.base.TransportAysnchronous transport that uses a background thread.
Writes logging entries as a batch process.
-
send(record, message)[source]# Overrides Transport.send().
Parameters: - record (
logging.LogRecord) – Python log record that the handler was called with. - message (str) – The message from the
LogRecordafter being formatted by the associated log formatters.
- record (
-