[erlang-questions] how: redirect trace output to a file

YC <>
Tue Nov 27 02:32:15 CET 2007


Thanks ;)

yc

On Nov 26, 2007 2:39 AM, Kenneth Lundin <> wrote:

> You can redirect trace output in various ways.
>
> dbg:tracer(Type,Data) % sets the tracer
>
> You can do like this to direct trace output to a file:
>
> dbg:tracer(port,dbg:trace_port(file,"MyFileName")).
>
> or
>
> dbg:tracer(port,dbg:trace_port(file,{"MyFileName",wrap,"MySuffix"})).
>
>
> /Kenneth Erlang/OTP team at Ericsson
>
> On 11/26/07, YC <> wrote:
> > Hi all -
> >
> > how do I redirect trace output to a file?  I played with dbg:trace_port,
> but
> > I'm unclear on how it's used and whether it's the right function.  Any
> > pointer is appreciated,
> >
> > Thanks,
> > yc
> >
> >
> >
> >
> > _______________________________________________
> > erlang-questions mailing list
> > 
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20071126/1a74f2ea/attachment.html>


More information about the erlang-questions mailing list