LogClient
Hierarchy
- ResourceClient
- LogClient
Index
Methods
Properties
Methods
__init__
Initialize the resource client.
Parameters
keyword-onlybase_url: str
API base URL.
keyword-onlypublic_base_url: str
Public CDN base URL.
keyword-onlyhttp_client: HttpClient
HTTP client for making requests.
keyword-onlyresource_path: str
Resource endpoint path (e.g., 'actors', 'datasets').
keyword-onlyclient_registry: ClientRegistry
Bundle of client classes for dependency injection.
optionalkeyword-onlyresource_id: str | None = None
Optional resource ID for single-resource clients.
optionalkeyword-onlyparams: dict | None = None
Optional default parameters for all requests.
Returns None
get
Retrieve the log as text.
Parameters
optionalkeyword-onlyraw: bool = False
If true, the log will include formatting. For example, coloring character sequences.
Returns str | None
The retrieved log, or None, if it does not exist.
get_as_bytes
Retrieve the log as raw bytes.
Parameters
optionalkeyword-onlyraw: bool = False
If true, the log will include formatting. For example, coloring character sequences.
Returns bytes | None
The retrieved log as raw bytes, or None, if it does not exist.
stream
Retrieve the log as a stream.
Parameters
optionalkeyword-onlyraw: bool = False
If true, the log will include formatting. For example, coloring character sequences.
Returns Iterator[HttpResponse | None]
The retrieved log as a context-managed streaming
Response, or None, if it does not exist.
Properties
resource_id
Get the resource ID.
Sub-client for managing a specific log.
Provides methods to manage logs, e.g. get or stream them. Obtain an instance via an appropriate method on the
ApifyClientclass.