Commit 2ab4af9
authored
Bugfix: logger LWC Initialization Message (#884)
* Updated loggerService.js to only call console.info() with an init message of 'logger component initialized' when console logging is enabled via LoggerSettings__c.IsJavaScriptConsoleLoggingEnabled__c
* Replaced enableSystemMessages() and disableSystemMessages() with new static variable LoggerService.areSystemMessagesEnabled
* Switched to using jest.resetAllMocks() instead of jest.clearAllMocks() for better test isolation
* Updated tests to reset LoggerService.hasInitialized and LoggerService.areSystemMessagesEnabled static variables in beforeEach() instead of afterAll()
- Updated all test functions to consistently use all logger creation methods (createLogger, getLogger, getMarkupLogger)
* Scope creep: Updated project's threshold for code coverage in codecov.yml to compensate for the lower code coverage in LWC tests for now. Eventually, code coverage for LWC will be increased - but for now, the constant alerts from codecov.io aren't particularly helpful ^_^
* Scope creep: Updated all Jest tests to import createElement from '@lwc/engine-dom' (instead of 'lwc')
* Scope creep: cleaned up a small code block in LogBatchPurger
* Scope creep: corrected the label on field LoggerScenarioRule__mdt.IsLogAssignmentEnabled__c1 parent b34b2c0 commit 2ab4af9
File tree
21 files changed
+102
-82
lines changed- .github
- nebula-logger
- core/main
- configuration/objects/LoggerScenarioRule__mdt/fields
- log-management
- classes
- lwc
- logBatchPurge/__tests__
- logEntryEventStream/__tests__
- logOrganizationLimits/__tests__
- logViewer/__tests__
- loggerCodeViewer/__tests__
- loggerHomeHeader/__tests__
- loggerPageSection/__tests__
- loggerSettings/__tests__
- logger-engine
- classes
- lwc/logger
- __tests__
- plugins/big-object-archiving/plugin/lwc/logEntryArchives/__tests__
- recipes/lwc
- loggerLWCCreateLoggerImportDemo/__tests__
- loggerLWCGetLoggerImportDemo/__tests__
21 files changed
+102
-82
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
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 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 168 | + | |
| 169 | + | |
173 | 170 | | |
174 | 171 | | |
175 | 172 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments