Client
Logger
The Logger
class provides logging capabilities for CyborgDB operations.
Configure Logger
Configures the logger with the specified log level and output options.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
level | str | - | Log level. Must be one of: “debug”, “info”, “warning”, “error”, “critical”. |
to_file | bool | False | Whether to write logs to a file instead of stdout/stderr. |
file_path | str | "cyborgdb_client.log" | (Optional) Path to the log file. Only used when to_file is True . |
Exceptions
Example Usage
The DEBUG level is only available in debug builds of the library.