Is it possible to let Logger
print out messages on original node, not attached node?
Here is the scenario:
- Run a release foreground as
app@localhost
- Attach IEx to the app:
iex --remsh app@localhost --name iex@localhost
If I execute something which uses Logger
at the attached IEx, then the log message appears only on the attached IEx, not the original remote node.
Console backend uses :user
as default :device
(ref), which is a Process
essentially. I don’t know what that user
process is. Shouldn’t it be user
process on the original node, not one from attached IEx?
BTW I include :observer
and :wx
to use :observer.start()
, and all wx
errors show up at the remote node, as expected!