haskell / lsp

Haskell library for the Microsoft Language Server Protocol
364 stars 90 forks source link

Unclear migration with respect to removal of `Language.LSP.Server.setupLogger` #441

Open sjakobi opened 2 years ago

sjakobi commented 2 years ago

We were using this action in dhall-lsp-server

-- | The main entry point for the LSP server.
run :: Maybe FilePath -> IO ()
run mlog = do
  setupLogger mlog
  ...

What's the correct response to the removal? The changelog doesn't mention this.

michaelpj commented 2 years ago

The logging has moved to co-log-core, we don't use hslogger at all any more. So you just delete it and pass LogActions where the compiler tells you to instead.