SyncTransport(client, name, resource=Resource(type="global", labels={}), **kwargs)
Basic sychronous transport.
Uses this library's Logging client to directly make the API call.
Methods
SyncTransport
SyncTransport(client, name, resource=Resource(type="global", labels={}), **kwargs)
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
record |
logging.LogRecord
Python log record that the handler was called with. |
message |
str or dict
The message from the |