4.58.0
(feat): Add support for logging to the generated SDK.
Users can configure the logger by passing in a logging parameter to the client constructor.
The logging parameter accepts a LogConfig dict with the following properties:
level: The log level to use. Defaults to"info".logger: The logger to use. Defaults toConsoleLogger.silent: Whether to silence the logger. Defaults toTrue.
The level property can be one of the following values:
"debug""info""warn""error"
To provide a custom logger, pass an object implementing the ILogger protocol
with debug, info, warn, and error methods.
Sensitive headers (authorization, x-api-key, cookie, etc.) are automatically
redacted in logs.