Storing pids

Joel Reymont <>
Thu Jan 5 13:15:29 CET 2006


Well, my intent is to log from different nodes so I can't discard the  
node id :-(.

Thanks for the tip, though!

On Jan 5, 2006, at 11:40 AM, Mats Cronqvist wrote:

>   fwiw, i always discard the first (node id) digit when logging pids.
>
> > tl(string:tokens(erlang:pid_to_list(self()),"<>.")).
> ["31","0"]

--
http://wagerlabs.com/








More information about the erlang-questions mailing list