The GBM Plus SDK uses Python’s standardDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/markzuckerbergas/gbmplus-api-python/llms.txt
Use this file to discover all available pages before exploring further.
logging module internally, writing messages at DEBUG level and above. Every request is logged before it is sent, and every response — including errors and retries — is recorded as well. All logging configuration happens through GBMPlusAPI constructor parameters; no external logger setup or logging.config calls are required.
Log output options
The SDK supports two independent output streams. You can enable one, both, or neither.| Stream | Controlled by | Default |
|---|---|---|
| Console (stdout) | print_console | True — messages at INFO level and above are printed |
| Log file | output_log | True — a .log file is created in log_path at session start |
output_log and print_console are True, the file handler receives all levels (DEBUG and above) while the console handler is set to INFO and above.
Log file naming
Whenoutput_log=True, the SDK creates a new file each time a GBMPlusAPI session is initialised. The filename follows this pattern:
log_path (defaults to the current working directory). A trailing / is appended to log_path automatically if it is missing.
Log format
All handlers share the same format string, taken directly from the SDK source:WARNING and ERROR level messages:
Recipes
- Disable all logging
- Log to file only
- Console only (no file)
- File only (no console)
For silent operation in production or when integrating with your own logging pipeline:No file is created, nothing is printed, and the internal
_logger is set to None.What gets logged
The SDK logs the following events automatically — no extra instrumentation needed in your code:Session initialisation
An
INFO message is emitted once the RestSession is created, listing the session parameters (credentials excluded).Before each request
A
DEBUG message logs the full endpoint metadata object: tags, operation name, HTTP method, URL, and query parameters.Successful response
An
INFO message records the tag, operation, HTTP status code, and reason phrase.Retries
A
WARNING message is emitted before each retry attempt, showing the error and the wait duration.