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
Copy file name to clipboardExpand all lines: ballerina/README.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,41 @@ The log module supports contextual logging, allowing you to create loggers with
151
151
152
152
For more details and advanced usage, see the module specification and API documentation.
153
153
154
+
### Runtime Log Level Modification
155
+
156
+
The log module supports modifying log levels at runtime without restarting the application. All loggers created via `fromConfig` are registered in a logger registry with a unique ID and can be discovered and updated at runtime.
- All loggers created via `fromConfig` (module-prefixed user IDs or auto-generated IDs)
186
+
187
+
> **Note:** Per-module log levels configured via `[[ballerina.log.modules]]` in `Config.toml` are static — they apply at startup and cannot be changed at runtime through the registry. Child loggers (created via `withContext`) are also not registered and always inherit their level from the parent.
188
+
154
189
### Sensitive Data Masking
155
190
156
191
The log module provides capabilities to mask sensitive data in log messages to maintain data privacy and security when dealing with personally identifiable information (PII) or other sensitive data.
0 commit comments