The Logger
class provides logging capabilities for CyborgDB operations.
Configures the logger with the specified log level and output options.
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 . |
ValueError