<div>Is that how it works? One would implement an io_server process, and then call erlang:group_leader(MyIoServer, self()) or the like?</div><div> </div><div>If so, that's great! But, I found nothing in the group_leader documentation nor the io protocol documentation linked to below that describes these details. I thought one would call erlang:group_leader(AnyOtherPid, self()) or the like, and self() would effectively inherit stdin and stdout from AnyOtherPid.</div><div><br>On Friday, December 14, 2012 8:48:33 AM UTC-8, Attila Rajmund Nohl wrote:</div><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">Hello!
<br>
<br>I think you have to implement an "io_server" process and set it with
<br>erlang:group_leader/2. I think this is the relevant documentation:
<br><a href="http://erlang.org/doc/apps/stdlib/io_protocol.html" target="_blank">http://erlang.org/doc/apps/<wbr>stdlib/io_protocol.html</a>
<br>
<br>2012/12/14 Roberto Majadas Lopez <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xdYGp-pbANQJ">roberto...@openshine.com</a><wbr>>:
<br>> No i don't need a logger system. I need a way to redirect all standard
<br>> output strings written with io:format, including from other source code.
<br>>
<br>>
<br>>
<br>> 2012/12/14 Yu-ri Cho <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xdYGp-pbANQJ">yu...@trueex.com</a>>
<br>>>
<br>>> Maybe lager is what you want
<br>>> <a href="https://github.com/basho/lager" target="_blank">https://github.com/basho/lager</a>
<br>>>
<br>>> On Fri, Dec 14, 2012 at 10:57 AM, Roberto Majadas Lopez
<br>>> <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xdYGp-pbANQJ">roberto...@openshine.com</a><wbr>> wrote:
<br>>>>
<br>>>>
<br>>>> Hello,
<br>>>>
<br>>>> I want to redirect all io:format outputs to one gen_server or similar.
<br>>>> How can i do it in erlang?
<br>>>>
<br>>>> Roberto
<br>>>>
<br>>>> ______________________________<wbr>_________________
<br>>>> erlang-questions mailing list
<br>>>> <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xdYGp-pbANQJ">erlang-q...@erlang.org</a>
<br>>>> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a>
<br>>>>
<br>>>
<br>>>
<br>>>
<br>>> --
<br>>> Yu-ri Gordon
<br>>> trueEX Group LLC
<br>>> 646-786-8520
<br>>>
<br>>>
<br>>> CONFIDENTIALITY NOTICE
<br>>>
<br>>> THE INFORMATION CONTAINED IN THIS COMMUNICATION IS INTENDED FOR THE NAMED
<br>>> RECEIVER ONLY. THE TRANSMISSION MAY CONTAIN PRIVILEGED AND CONFIDENTIAL
<br>>> MATERIAL. IF YOU ARE NOT THE NAMED RECIPIENT, PLEASE BE ADVISED THAT ANY
<br>>> USE, DISSEMINATION OR UNAUTHORIZED COPYING OF THE MATERIAL IS STRICTLY
<br>>> PROHIBITED. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY
<br>>> <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xdYGp-pbANQJ">SUP...@TRUEEX.COM</a> AND DESTROY THE RECEIVED COPY. THANK YOU.
<br>>
<br>>
<br>>
<br>>
<br>> --
<br>> Roberto Majadas
<br>> OpenShine S.L
<br>>
<br>> email : <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xdYGp-pbANQJ">roberto...@openshine.com</a>
<br>> tlf : +34 663 273 501
<br>>
<br>> <a href="http://www.openshine.com" target="_blank">www.openshine.com</a>
<br>>
<br>>
<br>> ______________________________<wbr>_________________
<br>> erlang-questions mailing list
<br>> <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xdYGp-pbANQJ">erlang-q...@erlang.org</a>
<br>> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a>
<br>>
<br>______________________________<wbr>_________________
<br>erlang-questions mailing list
<br><a href="javascript:" target="_blank" gdf-obfuscated-mailto="xdYGp-pbANQJ">erlang-q...@erlang.org</a>
<br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a>
<br></blockquote>