sql-language-server icon indicating copy to clipboard operation
sql-language-server copied to clipboard

feat: add log4js adapter for logging to lsp.log

Open Ty3uK opened this issue 2 years ago • 0 comments

Hi!

After spending some time trying to find cause of my local problem with connection to db I found that by default sql-language-server writing log file to very specific location on macOS:

> require("os").tmpdir()
'/var/folders/t6/7glf20r966z2wq4vzvcv2hpr0000gn/T'

Btw I use neovim (meme), so first thing that I tried was calling :LspLog to check what's happened. My log was empty so I decided to check how sql-language-server do logging and finally found cause of my error.

But maybe we can fully switch from logging to temp file to logging with LSP capabilities?

Ty3uK avatar Sep 05 '23 14:09 Ty3uK