-
Notifications
You must be signed in to change notification settings - Fork 30
Consider namespacing logs #32
Comments
The PR I have in OTP erlang/otp#1420 lets you configure the path for logs through a kernel env var (the paths are also moved to ~/.cache/ by default). Would this mechanism make sense for you here? |
Yes, I think it would be possible for Maybe a way to pass a path relative to the default one would be a solution? |
I was more thinking of having their bash script add an item like |
It's not as simple - |
yeah but they can just put it into |
It is worth pointing out that you can have the same shell running multiple languages. Just press Ctrl+G and start a new session in whatever language you like. So I would say this needs to be configurable per session, much like the |
There is no way to do such thing since there is no context to pass around for it nor is there any way to identify a session. |
Currently, all logs are stored together. That's completely fine, but it becomes problematic when using multiple different repls -
erl
,iex
andlfe
since all history is stored together. So now I can "scroll up" elixir commands in lfe or erlang - this is not desirable.Both lfe and iex achieve the custom repl by passing the
-user
argument toerl
executable. This argument can be obtained usinginit:get_argument(user)
- I'm not sure if there exists a more internal API exposing an already parsed value.I propose to store logs in
~/.erlang-hostory/<user>/
directory, where<user>
is the value of the init argument. As far as I understand the code, this will allow separating the Erlang, Elixir and LFE shell history rather easily.The text was updated successfully, but these errors were encountered: