Commit graph

1715 commits

Author SHA1 Message Date
Bruno Windels f2f9162b85 log pagehide event 2021-02-18 19:47:16 +01:00
Bruno Windels cfc17ad176 stringify values in log viewer, other number 0 does not get rendered 2021-02-18 15:38:56 +01:00
Bruno Windels bd85dc2393 children is undefined here actually, so filter wasn't working properly 2021-02-18 15:38:32 +01:00
Bruno Windels cd68bb7b3f log when devices get marked as outdated 2021-02-18 14:00:06 +01:00
Bruno Windels 8539b0c893 also log session in after sync completed as detail level 2021-02-18 13:07:52 +01:00
Bruno Windels dea11845f5 log encrypted event count in session sync write 2021-02-18 13:07:32 +01:00
Bruno Windels 499efb5ce0 add error and status to caption in logviewer 2021-02-18 13:07:12 +01:00
Bruno Windels e590b573fb log remaining specific room entries as detailed 2021-02-18 12:44:19 +01:00
Bruno Windels 9f9de0988e don't log here yet as the logger isn't passed from createIdentity yet 2021-02-18 12:44:19 +01:00
Bruno Windels 7524a912c3 use (t)ype rather than kind 2021-02-18 12:44:19 +01:00
Bruno Windels f321968ac3 add more sync logging 2021-02-18 12:44:19 +01:00
Bruno Windels e14929bd4f inherit log level from parent rather than defaulting to info if not set 2021-02-18 12:44:19 +01:00
Bruno Windels cc916b80de add app version to logs 2021-02-18 12:44:19 +01:00
Bruno Windels d201d2c9de don't use depth based log filtering, also add Detail log level
it's hard to make it work with an override where you don't want
to filter by depth if a given loglevel is present in the children.
2021-02-18 12:44:19 +01:00
Bruno Windels e9ce87ed9b
Merge pull request #233 from vector-im/bwindels/log-viewer
Log viewer
2021-02-18 11:29:22 +00:00
Bruno Windels 69feb40075 add copyright headers 2021-02-18 12:28:57 +01:00
Bruno Windels 560918e373 format times between root items better 2021-02-18 12:25:41 +01:00
Bruno Windels 19df43ca3c more compact layout, a few more detail fields and expand recursively but 2021-02-18 12:25:41 +01:00
Bruno Windels be1650defc add expand button to log items 2021-02-18 12:25:41 +01:00
Bruno Windels 17c2fad4b4 finish log viewer details panel 2021-02-18 12:25:40 +01:00
Bruno Windels 6b527cef65 basic log viewer 2021-02-18 12:25:40 +01:00
Bruno Windels 7e05e4e109 update caniuse to have up to date browser definitions for build script 2021-02-17 11:41:06 +01:00
Bruno Windels c179bc0aac we're using yarn, not npm, so remove npm lockfile 2021-02-17 11:40:44 +01:00
Bruno Windels d39c3812b2
Merge pull request #231 from vector-im/bwindels/logs
Structured logging
2021-02-17 10:19:46 +00:00
Bruno Windels 5bec4d5a72 comment 2021-02-16 20:05:33 +01:00
Bruno Windels 630ac40f05 this is broken now, but we're not using it anyway, so remove 2021-02-16 20:00:08 +01:00
Bruno Windels 0ccf735148 console log when failing to restore queued items 2021-02-16 19:57:45 +01:00
Bruno Windels b28eefb2db do emergency serialization without log filter 2021-02-16 19:53:37 +01:00
Bruno Windels c3637def2e ensure any breakage does not disrupt logging 2021-02-16 18:36:41 +01:00
Bruno Windels 2dd8803efc better error handling if something goes wrong serializing log items 2021-02-16 18:30:23 +01:00
Bruno Windels 338f628627 remove option to anonymize 2021-02-16 18:30:06 +01:00
Bruno Windels 90cfcad5f1 add privacy notice in settings 2021-02-16 18:25:52 +01:00
Bruno Windels 59928432df better logs filename 2021-02-16 17:46:07 +01:00
Bruno Windels 1f91fa9a94 final flush interval 2021-02-16 17:45:47 +01:00
Bruno Windels e629a93edd delete extra log items when over limit,to not have to delete every flush 2021-02-16 17:45:19 +01:00
Bruno Windels ee4a382578 revert this back 2021-02-16 15:38:43 +01:00
Bruno Windels 5d67db0c5e Fix NullLogger 2021-02-16 15:35:30 +01:00
Bruno Windels 7dc3707871 add button to export logs 2021-02-16 15:27:24 +01:00
Bruno Windels 48569c28bc serialize logs as json 2021-02-16 15:08:08 +01:00
Bruno Windels 4defbe1322 simplify log filtering, while also adding depth based filtering 2021-02-16 15:07:17 +01:00
Bruno Windels 78805f0a65 implement dynamic log filtering
the logger does not have a base level any more, because there is
no sensible place to configure this.

instead, we allow to dynamically determine what should be logged
after an operation finished by setting the threshold and default
log level inspecting the finished log item.
2021-02-16 11:37:48 +01:00
Bruno Windels 510d5ab2cd add bool settings type 2021-02-12 19:08:13 +01:00
Bruno Windels 704708bd6c add some logging to sync 2021-02-12 18:56:26 +01:00
Bruno Windels 07f8500d29 don't read from settings for now, as it is async 2021-02-12 18:55:37 +01:00
Bruno Windels 1183305d71 wrapLog => run is a better name 2021-02-12 18:36:21 +01:00
Bruno Windels 42780df94f actually track log items, and correctly remove them 2021-02-12 18:36:04 +01:00
Bruno Windels a53c25d2ae support logging in hsApi 2021-02-12 18:35:33 +01:00
Bruno Windels e6c108c6e0 no need to copy it over in viewmodel 2021-02-12 18:06:14 +01:00
Bruno Windels f65db338cf make it work 2021-02-12 18:05:39 +01:00
Bruno Windels 89139bba30 expose some meta data on a log export to show before submitting 2021-02-12 16:08:28 +01:00