LSP log file grows infinitely

The size of my lsp logfile located in .local/state/nvim/lsp.log grows uncontrollably.

Mine was ~300MB when I started noticing problems when doing :LspLog

Is there a way to configure this so that it rotates or something similar?

Turn it off with vim.lsp.set_log_level("off") and when you need it for debugging, switch it to vim.lsp.set_log_level("debug").