Skip to content

Commit e1e761b

Browse files
authored
docs: update logger section in README (#397)
Incorrect example in the README and addition of more information in the logger section
1 parent e69f7aa commit e1e761b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,8 @@ require('copilot').setup({
8888
["."] = false,
8989
},
9090
logger = {
91-
log_to_file = false,
9291
file = vim.fn.stdpath("log") .. "/copilot-lua.log",
93-
file_log_level = vim.log.levels.WARN,
94-
print_log = true,
92+
file_log_level = vim.log.levels.OFF,
9593
print_log_level = vim.log.levels.WARN,
9694
trace_lsp = "off", -- "off" | "messages" | "verbose"
9795
trace_lsp_progress = false,
@@ -224,6 +222,7 @@ require("copilot").setup {
224222

225223
Logs will be written to the `file` for anything of `file_log_level` or higher.
226224
Logs will be printed to NeoVim (using `notify`) for anything of `print_log_level` or higher.
225+
To turn either off, simply set its level to `vim.log.levels.OFF`.
227226
File logging is done asynchronously to minimize performance impacts, however there is still some overhead.
228227

229228
Log levels used are the ones defined in `vim.log`:

0 commit comments

Comments
 (0)