Home All Groups Group Topic Archive Search About

making .NET 2.0 tracefiles readable/parsable

Author
10 Oct 2006 7:51 AM
Robert Ludig
I have two questions regarding parsing and reading tracefiles:

1. Is there a tool that can read logfiles that were generated by the
..NET 2.0 tracing and presents the data in a human readable form?
Preferably with some searching, sorting and filtering options?

2. How can make the trace output to be written in XML format so that it
is easier to parse?

Author
10 Oct 2006 8:06 AM
Chris Fulstow
I don't think there's any built-in way to do this, but you can build
your own trace listener that will output trace information in a custom
XML format, see here for more info:

http://www.15seconds.com/issue/020910.htm
http://msdn2.microsoft.com/en-us/library/system.diagnostics.tracelistener.aspx

Robert Ludig wrote:
Show quote
> I have two questions regarding parsing and reading tracefiles:
>
> 1. Is there a tool that can read logfiles that were generated by the
> .NET 2.0 tracing and presents the data in a human readable form?
> Preferably with some searching, sorting and filtering options?
>
> 2. How can make the trace output to be written in XML format so that it
> is easier to parse?
Author
10 Oct 2006 9:05 AM
bonk
well there is XmlWriterTraceListener, looks like it is what I was
looking for.

Chris Fulstow schrieb:

Show quote
> I don't think there's any built-in way to do this, but you can build
> your own trace listener that will output trace information in a custom
> XML format, see here for more info:
>
> http://www.15seconds.com/issue/020910.htm
> http://msdn2.microsoft.com/en-us/library/system.diagnostics.tracelistener.aspx
>
> Robert Ludig wrote:
> > I have two questions regarding parsing and reading tracefiles:
> >
> > 1. Is there a tool that can read logfiles that were generated by the
> > .NET 2.0 tracing and presents the data in a human readable form?
> > Preferably with some searching, sorting and filtering options?
> >
> > 2. How can make the trace output to be written in XML format so that it
> > is easier to parse?
Author
10 Oct 2006 9:25 AM
Chris Fulstow
Looks perfect - hadn't seen that one :)

bonk wrote:
Show quote
> well there is XmlWriterTraceListener, looks like it is what I was
> looking for.
>
> Chris Fulstow schrieb:
>
> > I don't think there's any built-in way to do this, but you can build
> > your own trace listener that will output trace information in a custom
> > XML format, see here for more info:
> >
> > http://www.15seconds.com/issue/020910.htm
> > http://msdn2.microsoft.com/en-us/library/system.diagnostics.tracelistener.aspx
> >
> > Robert Ludig wrote:
> > > I have two questions regarding parsing and reading tracefiles:
> > >
> > > 1. Is there a tool that can read logfiles that were generated by the
> > > .NET 2.0 tracing and presents the data in a human readable form?
> > > Preferably with some searching, sorting and filtering options?
> > >
> > > 2. How can make the trace output to be written in XML format so that it
> > > is easier to parse?

AddThis Social Bookmark Button