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

YC yinso.chen@REDACTED
Tue Nov 27 02:32:15 CET 2007


Thanks ;)

yc

On Nov 26, 2007 2:39 AM, Kenneth Lundin <kenneth.lundin@REDACTED> 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 <yinso.chen@REDACTED> 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
> > erlang-questions@REDACTED
> > 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.htm>


More information about the erlang-questions mailing list