Commit 2445dcb
authored
New synchronous JS function getLogger() + deprecated async function createLogger() (#775)
* Fixed #728 by adding a new function getLogger() in logger LWC that can be called synchronously, and deprecated the async function createLogger()
* This simplifies how developers use the logger LWC, and avoids some lingering JS stack trace issues that occur in async functions
* The function createLogger() is still supported & functional, but it's now considered deprecated since it requires using 'await'
* Resolved #763 by adding new logger.exception() JS function (equivalent to the Apex method Logger.exception())
* Fixed #776 by updating logic in loggerStackTrace.js to better handle parsing when lightning debug mode is disabled. Previously, stack traces worked when debug mode was enabled, but were inaccurate when debug mode was off due to some subtle differences in the generated stack traces
* Changed recipes metadata to add a new demo LWC for the new/recommended getLogger() function, and updated the existing demo LWC for the createLogger() function to indicate that it's now deprecated
* Scope creep: updated LogEntryEventBuilder to always set LoggedByUsername__c using System.UserInfo methods. Previously, it was only set when synchronous querying of User data was enabled1 parent cfdae6b commit 2445dcb
51 files changed
Lines changed: 2187 additions & 5593 deletions
File tree
- config/scratch-orgs/experience-cloud/experiences
- Logger_Test_Aura_Site1/views
- Logger_Test_LWR_Site1/views
- docs
- apex/Logger-Engine
- lightning-components
- nebula-logger
- core
- main/logger-engine
- classes
- lwc/logger
- __tests__
- data
- tests/logger-engine/classes
- managed-package/core/main/deprecated/profiles
- recipes
- applications
- flexipages
- flows
- lwc
- loggerLWCCreateLoggerImportDemo
- __tests__
- loggerLWCEmbedDemo
- loggerLWCGetLoggerImportDemo
- __tests__
- permissionsets
- quickActions
- tabs
- scripts/build
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
| 160 | + | |
| 161 | + | |
162 | 162 | | |
163 | | - | |
164 | | - | |
| 163 | + | |
| 164 | + | |
165 | 165 | | |
166 | | - | |
167 | | - | |
| 166 | + | |
168 | 167 | | |
169 | 168 | | |
170 | 169 | | |
| |||
432 | 431 | | |
433 | 432 | | |
434 | 433 | | |
435 | | - | |
| 434 | + | |
436 | 435 | | |
437 | 436 | | |
438 | 437 | | |
439 | | - | |
| 438 | + | |
| 439 | + | |
440 | 440 | | |
441 | | - | |
442 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
443 | 444 | | |
444 | 445 | | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | 446 | | |
449 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
450 | 459 | | |
451 | 460 | | |
452 | 461 | | |
| |||
467 | 476 | | |
468 | 477 | | |
469 | 478 | | |
470 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
471 | 483 | | |
472 | 484 | | |
473 | 485 | | |
| |||
660 | 672 | | |
661 | 673 | | |
662 | 674 | | |
663 | | - | |
| 675 | + | |
664 | 676 | | |
665 | | - | |
666 | | - | |
| 677 | + | |
| 678 | + | |
667 | 679 | | |
668 | 680 | | |
669 | | - | |
670 | 681 | | |
671 | 682 | | |
672 | 683 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
0 commit comments