[erlang-questions] Logging interprocess communication

Loïc Hoguin <>
Sun Dec 9 14:44:07 CET 2012


On 12/09/2012 02:35 PM, Yash Ganthe wrote:
>
> Hi,
>
> In an Erlang VM when one process send a message to another using: Pid !
> MyMessage we would like to log this interaction to a log file. We need
> to do this without having the developer introduce explicit log
> statements all over the code wherever one process communicates with
> another.
>
> What is the best way to achieve this?

I would look at Erlang support for DTrace/Systemtap depending on the 
system you are running. For Linux, Systemtap needs a special kernel 
build but that's not hard to setup (at least on Arch Linux).

-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu



More information about the erlang-questions mailing list