This is an automated email from the ASF dual-hosted git repository.
aghaemi pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/flagon-useralejs.git
The following commit(s) were added to refs/heads/test by this push:
new 053590e Duplicate logging note for custom logs
053590e is described below
commit 053590e2b358c004f04dfe60fced861d9f859e49
Author: Amir Ghaemi <[email protected]>
AuthorDate: Mon Jan 29 11:18:32 2024 -0500
Duplicate logging note for custom logs
Added note to documentation for duplicate logging with custom logs.
---
example/log-label-example/README.md | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/example/log-label-example/README.md
b/example/log-label-example/README.md
index 1b6b159..a17a89e 100644
--- a/example/log-label-example/README.md
+++ b/example/log-label-example/README.md
@@ -6,6 +6,9 @@ logging information about a specific feature.
## Adding Custom Labels to Logs
+#### Important Note
+Please be aware that when adding custom logs without disabling raw logging for
those specific logs, duplicate log entries will be generated: one for raw logs
and another for custom logs.
+
### Example 1
Consider the following HTML:
@@ -59,4 +62,4 @@ This event listener will now be invoked on the `customEvent`
and send a custom l
Note that we only advise adding custom event listeners in the following
scenarios:
1. For events not captured natively by UserALE.js (as seen above)
-2. For sending custom logs *only*
\ No newline at end of file
+2. For sending custom logs *only*