Skip to content

Commit

Permalink
feat(diagnostics): Runtime trace logging (#2598)
Browse files Browse the repository at this point in the history
This adds a switch during runtime to turn on trace logging to a file:

![2020-10-19 12 57 39](https://user-images.githubusercontent.com/13532591/96505437-f8519080-120a-11eb-9908-02c5f956151b.gif)


- Accessible via the `Command+Shift+P`/`Control+Shift+P` command palette - `Debug: Log to trace file`

When this option is selected, an `onivim-trace.log` file will be created in the current working directory, and the trace log level will be enabled. 

The use case for this is to acquire more details around issues like #2407 - cases where the editor may not have been started with logging, but having the log would be helpful in diagnosing.
  • Loading branch information
bryphe authored Oct 20, 2020
1 parent 540f551 commit 480f09c
Show file tree
Hide file tree
Showing 30 changed files with 721 additions and 303 deletions.
129 changes: 86 additions & 43 deletions bench.esy.lock/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bench/lib/Helpers.re
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ let simpleState = {

let state =
State.initial(
~cli=Oni_CLI.default,
~initialBuffer,
~initialBufferRenderers=BufferRenderers.initial,
~getUserSettings=() => Ok(Config.Settings.empty),
Expand Down
Loading

0 comments on commit 480f09c

Please sign in to comment.