You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Service** | Sets **Service** key that will be present across all log statements | `POWERTOOLS_SERVICE_NAME` | `Service`
37
37
**Logging level** | Sets how verbose Logger should be (Information, by default) | `POWERTOOLS_LOG_LEVEL` | `LogLevel`
38
38
39
+
### Service Property Priority Resolution
40
+
41
+
The root level Service property now correctly follows this priority order:
42
+
43
+
1. LoggingAttribute.Service (property value set in the decorator)
44
+
2. POWERTOOLS_SERVICE_NAME (environment variable)
45
+
46
+
39
47
### Example using AWS Serverless Application Model (AWS SAM)
40
48
41
49
You can override log level by setting **`POWERTOOLS_LOG_LEVEL`** environment variable in the AWS SAM template.
@@ -788,4 +796,4 @@ To use a custom log formatter with AOT, pass an instance of `ILogFormatter` to `
788
796
789
797
While we support anonymous type serialization by converting to a `Dictionary<string, object>`, this is **not** a best practice and is **not recommended** when using native AOT.
790
798
791
-
We recommend using concrete classes and adding them to your `JsonSerializerContext`.
799
+
We recommend using concrete classes and adding them to your `JsonSerializerContext`.
0 commit comments