Logging config
LoggingConfig #
Bases: BaseModel
Holds the configuration for the logging process.
Attributes:
| Name | Type | Description |
|---|---|---|
level |
str
|
The logging level. Defaults to "WARNING". |
log_file |
str | None
|
The logging file. Defaults to None. |
format |
str
|
The logging format. Defaults to "%(asctime)s - %(name)s - %(levelname)s - %(message)s". |
silent_mode |
bool
|
Whether to disable the prints and progress bars. Does NOT affect the logging. Defaults to False. |
enable_otlp |
bool
|
Whether to enable OpenTelemetry trace logs. Defaults to True. |
Source code in src/rapidata/rapidata_client/config/logging_config.py
register_config_handler #
Register a handler to be called when the logging configuration updates.
unregister_config_handler #
Unregister a previously registered handler.