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: README.md
+18
Original file line number
Diff line number
Diff line change
@@ -49,3 +49,21 @@ Open browser at http://localhost:3000
49
49
```sh
50
50
yarn test
51
51
```
52
+
53
+
## Logging
54
+
55
+
Client-side logs are disabled by default in production builds and enabled by default in a development environment. In production, logging can be turned on by adding a couple keys to your browser's `localStorage`. Simply run these two JS statements in you browser's DevTools console:
The value for `debug` is a namespace filter which determines which portions of the app to display logs for. The namespaces currently used by the app are as follows:
62
+
63
+
-`main`: logs general application messages
64
+
-`action`: logs all actions that modify the internal application state
65
+
-`grpc`: logs all GRPC API requests and responses
66
+
67
+
Example filters: `main,action` will only log main and action messages. `*,-action` will log everything except action messages.
68
+
69
+
The value for `debug-level` determines the verbosity of the logs. The value can be one of `debug`, `info`, `warn`, or `error`.
0 commit comments