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
-**dependencies:** use @shiftcode/ngx-core@^12.0.0 ([8a75739](https://github.com/shiftcode/sc-ng-commons-public/commit/8a75739de97439247307d4e99a7cb640d0212c10))
-**ensure-origin.interceptor:** introduce interceptor to prepend the origin on requests ([453b6e1](https://github.com/shiftcode/sc-ng-commons-public/commit/453b6e13be325447f8d6bb46afa9f2c4deb616a4))
11
+
-**provide-origin-from-env:** introduce origin provider function for ssr ([03d10c2](https://github.com/shiftcode/sc-ng-commons-public/commit/03d10c2004b48c532f6183a517e9a67054a5a35b))
-**logger:** ensure `requestInfo` is optional in log data and improve injection syntax ([91f9bb9](https://github.com/shiftcode/sc-ng-commons-public/commit/91f9bb9abffbb4f69b39d586cf02955e820b8cfc))
18
+
-**logger:** make the `LogRequestInfo` feature working again ([0e3d49d](https://github.com/shiftcode/sc-ng-commons-public/commit/0e3d49d6df80a866cc67c7c3973b75182c93d65f))
19
+
20
+
### Code Refactoring
21
+
22
+
-**logger:** do not expose internals ([8601529](https://github.com/shiftcode/sc-ng-commons-public/commit/86015291dee8f0eb528845c96c1bca28894bef79))
23
+
24
+
### BREAKING CHANGES
25
+
26
+
-**logger:** - the LOG_REQUEST_INFO token does no longer exist
27
+
28
+
*`provideLogRequestInfo` no longer exists. use `withRequestInfoFn` instead
29
+
30
+
-**logger:** - the LoggerFeature type and LoggerFeatureKind enum are no longer exported
Copy file name to clipboardExpand all lines: libs/core/README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,3 +60,27 @@ class MyDirective {
60
60
- Node Console: `withNodeConsoleTransport(...)`
61
61
- Remote: `withRemoteTransport(...)`
62
62
- AWS CloudWatch: see `withCloudwatchTransport(...)`
63
+
64
+
### LogRequestInfo Integration
65
+
You can enrich your log requests for `Remote` and `CloudWatch` Transports with custom information like user/session/device metadata using the `withRequestInfoFn` feature.
66
+
67
+
#### Usage Example
68
+
Use the feature `withRequestInfoFn` function to provide a factory for a `LogRequestInfoFn`.
69
+
The `LogRequestInfoFn` is a function itself that is called prior every log request. Its return value needs to be an object with the information to be included.
0 commit comments