settings
LoggingSettings
¶
Bases: BaseSettings
This class defines the logging settings of the nessy Framework.
Attributes:
| Name | Type | Description |
|---|---|---|
target_log_analytics |
bool
|
Whether to log to Azure Log Analytics. |
target_unity_catalog_table |
bool
|
Whether to log to the Unity Catalog Table. |
log_analytics_workspace_id |
str | None
|
The workspace ID for Azure Log Analytics. |
log_analytics_shared_key |
str | None
|
The shared key for Azure Log Analytics. |
uc_workspace_url |
AnyUrl | None
|
The workspace URL for the Unity Catalog Table. |
uc_warehouse_id |
str | None
|
The warehouse ID for the Unity Catalog Table. |
uc_catalog_name |
str | None
|
The catalog name for the Unity Catalog Table. |
uc_schema_name |
str | None
|
The schema name for the Unity Catalog Table. |
log_level_console |
int
|
The log level for the console logger. |
log_level_tabular |
int
|
The log level for the tabular logger. |
log_format_console |
str
|
The format of the console logger. |
Source code in src/cloe_nessy/settings/settings.py
NessySettings
¶
Bases: BaseSettings
This class defines the settings of the nessy Framework.
Attributes:
| Name | Type | Description |
|---|---|---|
logging |
LoggingSettings
|
The logging settings of the nessy Framework. |
Source code in src/cloe_nessy/settings/settings.py
get_log_level(log_level)
¶
Convert the log level to an integer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
log_level
|
int | str
|
The log level as a string or integer. |
required |
Returns:
| Type | Description |
|---|---|
int
|
The log level as an integer. |