Skip to content

Not seeing logs from my plugin #202

@ChristianChiarulli

Description

@ChristianChiarulli

I set NVIM_NODE_LOG_FILE="$HOME/nvim_node_log" and I see logging from the node client but not from any of the log statements in my plugin.

Example logs I'm seeing:

{"level":"debug","message":"getPlugin.alwaysInit"}
{"level":"debug","message":"request -> neovim.api.nvim_out_write"}
{"level":"debug","message":"response -> neovim.api.nvim_out_write: null"}
{"level":"debug","message":"host.disconnected"}
{"level":"debug","message":"host.start"}
{"level":"info","message":"handleRequest: "}
{"level":"debug","message":"request received: "}
{"level":"info","message":"handleRequest: "}
{"level":"debug","message":"host.start"}

I would expect to see the log statements defined in the plugin as well. To reproduce just check if the logs are working in the example bundled with this repo: https://github.com/neovim/node-client/tree/master/examples/rplugin/node/nvim-example

I'm also not sure if ALLOW_CONSOLE has anything to do with this but whenever I set it to 1 for instance but that doesn't seem to do anything either.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions