Class SyncTransport (3.2.1)

SyncTransport(client, name, resource=Resource(type="global", labels={}), **kwargs)

Basic sychronous transport.

Uses this library's Logging client to directly make the API call.

Inheritance

builtins.object > Transport > SyncTransport

Methods

SyncTransport

SyncTransport(client, name, resource=Resource(type="global", labels={}), **kwargs)
Parameters
NameDescription
client `logging_v2.client.Client`

The Logging client.

name str

The name of the lgoger.

resource Optional[Resource|dict]

The default monitored resource to associate with logs when not specified

send

send(record, message, **kwargs)

Overrides transport.send().

Parameters
NameDescription
record logging.LogRecord

Python log record that the handler was called with.

message str or dict

The message from the LogRecord after being formatted by the associated log formatters.