[erlang-questions] remsh, lager and local output

Ignas Vyšniauskas baliulia@REDACTED
Tue Jun 26 13:04:57 CEST 2012

Hi Erlangers,

I am attaching to a remote node via 'erl -remsh' and I'd like to be able
to see all of it's output in the REPL. For logging I am running lager on
the remote node.

 From what I've found, I see only one way to proceed:
Write a custom lager backend which could take as a parameter the Pid of
the group_leader() on the node from which I am attaching and use it as
the IoDevice for the io calls.

But this seems a bit odd to me. Has anyone had/tried to solve this
problem? If so, I'd be very interested to hear with what you came up.

Best wishes,

More information about the erlang-questions mailing list