Skip to content

Commit

Permalink
Duplicate logging note for custom logs
Browse files Browse the repository at this point in the history
Added note to documentation for duplicate logging with custom logs.
  • Loading branch information
amirmghaemi authored Jan 29, 2024
1 parent ccdb459 commit 053590e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example/log-label-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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*
2. For sending custom logs *only*

0 comments on commit 053590e

Please sign in to comment.