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
Copy file name to clipboardExpand all lines: CHANGELOG-1.x.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,9 @@
4
4
5
5
# 1.8.0 (2021-05-18)
6
6
7
-
-[f1c1176](https://github.com/patternfly/patternfly-elements/commit/f1c1176d9278d6e5b8066b42fc040ea01d98ecb2) feat: pfe-icon now supports setting default icon sets
7
+
-[](https://github.com/patternfly/patternfly-elements/commit/) feat: persist debugLog in localStorage
8
8
-[267ff8e](https://github.com/patternfly/patternfly-elements/commit/267ff8ee7df7cd0512f16c58fdb169f941bfa4cd) feat: Update fetch mixin to support region input (#1328)
9
+
-[f1c1176](https://github.com/patternfly/patternfly-elements/commit/f1c1176d9278d6e5b8066b42fc040ea01d98ecb2) feat: pfe-icon now supports setting default icon sets
9
10
-[56eb55e](https://github.com/patternfly/patternfly-elements/commit/56eb55ec8b4b62aee7d36950d158229cbf50ddef) fix: pfe-accordion IE11 regression; background context should always be white with black text
10
11
-[398003e](https://github.com/patternfly/patternfly-elements/commit/398003e3d805567af826d924bfd5e2e9655425a4) fix: [pfe-icon] Update icon color vs. background color custom property support
11
12
-[63df897](https://github.com/patternfly/patternfly-elements/commit/63df897d5235a2af15733b52a1c0f4d8304dcb96) fix: Add in missing polyfills for pfelement
Copy file name to clipboardExpand all lines: elements/pfelement/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,9 +125,11 @@ If a value is defined at any point of this flow, an `on` attribute will be attac
125
125
126
126
The `context_update` function will use much the same logic except it updates the context for the component calling the function and triggers an update for all of it's pfelement children.
127
127
128
-
### Log
128
+
### Debug logging
129
129
130
-
Prints a message to the console log in a standardized format when debugging is turned on: `[pfe-band]: This is my console message.`. To invoke this inside an element, you can add `this.log("This is my console message");` to your JS file.
130
+
Debug logging can be enabled by running `localStorage.pfeLog = true` in the console. This setting is sticky, so you can refresh the page and debug logging will stay enabled on that domain. To disable debug logging, run `localStorage.removeItem("pfeLog")`. You can also run `PFElement.debugLog(true)` to enable and `PFElement.debugLog(false)` to disable, however it's almost always easier to use localStorage directly because it can be tedious to get a reference to `PFElement` from the console.
131
+
132
+
Printing debug log messages can be done with `this.log("This is my debug log message")` within any element's method. This will produce a console log such as: `[pfe-band]: This is my console message.`.
0 commit comments