Commit graph

29 commits

Author SHA1 Message Date
github-actions[bot]
871d0d21a2 Merge remote-tracking branch 'origin/master' into v9-rollup 2023-09-17 14:01:36 +00:00
MidoriKami
08fd4434ea
Dalamud Console Window UI-Rework (#1390)
Co-authored-by: Kaz Wolfe <root@kazwolfe.io>
2023-09-17 14:41:56 +02:00
Kaz Wolfe
8911d4ebc2
Re-add SourceContext property check
Technically an API breakage, some plugins are passing this for logging. Slated for removal in API 9, however.
2023-09-12 18:33:41 -07:00
Kaz Wolfe
764e0a81b7
Fix log filtering with IPluginLog
- Rename `PluginLog`'s property to `Dalamud.PluginName` to match what `IPluginLog` is doing.
- Change `ModuleLog` to use `Dalamud.ModuleName` as its context property.
- Update the Console window to handle both changes.
  - Add the ability to filter to only Dalamud module log messages.
2023-09-09 15:21:05 -07:00
goat
02e1f2502e
refactor: move Dalamud.Interface utils into main assembly, warnings pass 2023-08-04 19:36:09 +02:00
Blair
e29e1b35ec
Destroy clipper each frame
This stops a memory leak from happening, as far as I can see the clipper should be destroyed as it's being created in the same draw call.
2023-02-08 22:59:44 +10:00
Caraxi
7545fa3452 Remove --------------------- when copying from log window 2023-02-05 20:47:36 +10:30
goaaats
bc3dcdfad7
feat: settings window rework 2023-01-06 22:32:44 +01:00
goat
9c16359914
feat: batch config saves 2022-11-01 19:44:57 +01:00
goat
987ff8dc8f
chore: convert Dalamud to file-scoped namespaces 2022-10-29 15:23:22 +02:00
Kaz Wolfe
4257aab420
Add "Show Uncaught Exceptions" to Log Filtering
- Add checkbox to control showing uncaught exceptions regardless of other filters
- Add `HasException` to `LogEntry` to track exception state
- Add order-by-name to the filter dropdown
2022-10-03 19:30:22 -07:00
Kaz Wolfe
5dd883db25
Fix missing plugin names in log, filter quirk
- Re-add the [PluginName] tag to plugin log messages
- Remove source prepending from the SerilogEventSink
- Force a filter refresh on enabling/disabling log filtering
- Convert ModuleLog to properly tag its messages with SourceContext
2022-09-10 14:53:44 -07:00
Kaz Wolfe
abecf2ffe4
Add Per-Plugin Log Filtering Support
This commit adds first-pass support for more robust plugin log filtering. No changes were made that affect PluginLog's APIs nor log format. This change works by making use of Serilog's "SourceContext" property to attach plugin information to all log messages. The in-game log UI can then be used to filter based on this property.

Future expansions for this system include the ability to set different plugins to different log levels (something that already can technically be done, but requires those plugins be hard-coded through MinimumLevel.Override), creating new root loggers for each plugin (thereby giving plugin devs more control over their logging should they want to use it), plus other potential improvements in the way of adding context or rich information.

- Update PluginLog to attach a "SourceContext" property to all log messages.
- Tweak the SerilogEventSink to pass the original log event around.
- Suppress Info/Debug/Verbose exceptions from Troubleshooting reports.
- Fix the ConsoleWindow log filter to use _all_ filters, rather than just one.
- Add ConsoleWindow dropdown to select plugins to filter logs by
- Add support for multiple log levels to ConsoleWindow filtering
2022-08-23 21:36:55 -07:00
kizer
716736f022
Improvements (#903) 2022-06-29 11:51:40 +02:00
goaaats
47a2287e83
feat(console): require double click to kill game 2021-12-04 15:10:31 +01:00
goat
1561fbac00
Revert "refactor(Dalamud): switch to file-scoped namespaces"
This reverts commit b5f34c3199.
2021-11-18 15:23:40 +01:00
goat
b5f34c3199
refactor(Dalamud): switch to file-scoped namespaces 2021-11-17 19:42:32 +01:00
Raymond
2e5296ea3c Console window: always have scrollbars 2021-11-04 09:25:16 -04:00
goat
2c4f858ced
fix(Console): log drawing on scale != 1.0 2021-10-01 15:58:23 +02:00
goat
5fdf07aead
style editor setup WIP 2021-09-18 18:23:10 +02:00
goat
e29a312c52
fix: don't show troubleshooting lines in console 2021-09-17 23:50:27 +02:00
goat
59ba3bdd07
feat: print all logged exceptions via Troubleshooting 2021-09-17 04:09:38 +02:00
goat
412a335b93
feat: do not close addons when any Window is still open 2021-09-01 19:50:23 +02:00
Raymond
ff1d7f2829 Implement service locator 2021-08-21 14:03:06 -04:00
goat
d252c7fb0a
feat: console tooltips 2021-08-11 03:15:32 +02:00
Raymond
8fd119dde8 Migrate files to Dalamud.Logging namespace Remove Log.LogX methods. 2021-08-09 10:03:13 -04:00
goat
28e99f5e4d
feat: add "kill game" button to console 2021-07-18 17:36:42 +02:00
goat
0a4051b3cc
fix: warnings, don't use singleton 2021-07-17 22:58:53 +02:00
goat
c287e28832
feat: add new ConsoleWindow 2021-07-17 22:45:59 +02:00