diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 5aeb9e0ba..1bbbd075f 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -17,8 +17,14 @@ + The `load()` method was removed. Please use `frequenz.sdk.config.load_config()` instead. + The class is now a standard `dataclass` instead of a `marshmallow_dataclass`. + + The class is now immutable. + + The constructor now accepts only keyword arguments. - * `LoggerConfig` is not a standard `dataclass` instead of a `marshmallow_dataclass`. + * `LoggerConfig` + + + The class is now a standard `dataclass` instead of a `marshmallow_dataclass`. + + The class is now immutable. + + The constructor now accepts only keyword arguments. ## New Features diff --git a/src/frequenz/sdk/config/_logging_actor.py b/src/frequenz/sdk/config/_logging_actor.py index 3941ad3bf..7ba2f6b21 100644 --- a/src/frequenz/sdk/config/_logging_actor.py +++ b/src/frequenz/sdk/config/_logging_actor.py @@ -26,7 +26,7 @@ """A marshmallow field for validating log levels.""" -@dataclass +@dataclass(frozen=True, kw_only=True) class LoggerConfig: """A configuration for a logger.""" @@ -41,7 +41,7 @@ class LoggerConfig: """The log level for the logger.""" -@dataclass +@dataclass(frozen=True, kw_only=True) class LoggingConfig: """A configuration for the logging system."""