Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Conversation

fhunleth
Copy link
Contributor

This makes error logs show up in VSCode's error window without
interfering with communication over stdout.

This makes error logs show up in VSCode's error window without
interfering with communication over stdout.
@mhanberg mhanberg changed the title Redirect log messages to stderr fix: redirect logger to stderr Aug 28, 2023

config :next_ls, :indexing_timeout, 100

config :logger, :default_handler, config: [type: :standard_error]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you point me to the docs on this config option? I can't seem to find it in the OTP docs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To start, skim down to the :default_handler configuration at https://hexdocs.pm/logger/Logger.html#module-boot-configuration. Then go to https://www.erlang.org/doc/man/logger_std_h.html for the options. :type is the first one.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants