How about having a custom sink which writes to Tracelogs ?. Is It Possible?.
Does EIF or .Net supports API where I can write directly to Tracelog?(not
the default tracesink). Idea is , Custom sink will write to Tracelog based
on certain properties of custom event and will determine whether to write to
same tracelog or to create new one.
Hi,
It is possible to create custom tracesink to write to the tracelogs, but it
is going to require managing the trace sessions(start/stop etc..) [IMO a
lot of work]. And currently there are no APIs exposed by .Net/EIF itself to
handle the event tracing, so you could pinvoke the ETW APIs.
If your custom events are NOT going to be generated at very high speeds in
real time, it'd be easier to read/write to a file using the existing .net
apis.
But I'll defer to Mike or David to provide further suggestions/info.
Thx
Barath
This posting is provided "As Is" with no warranties, and confers no
rights.Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
>From: "sridhar Venkatesan" <sridharv@adelphia.net>
>Subject: Customs sinks and tracelogs
[quoted text clipped - 16 lines]
>on certain properties of custom event and will determine whether to write to
>same tracelog or to create new one.
Mike Hayton [MS] - 22 Nov 2003 20:03 GMT
No I agree with Barath,
Writing your own custom trace event Sink would be very tricky. (It was one
of the tricker parts of writing EIF).
I would suggest you have a read of
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/bas
e/about_event_tracing.asp?frame=true
You'll see that its the controller (the TraceSessionManager (TSM) service
in EIF) that controlls when the log files are created and what there name
is.
I hope this helps
Mike
--------------------
| Hi,
| It is possible to create custom tracesink to write to the tracelogs, but it
[quoted text clipped - 36 lines]
| to
| >same tracelog or to create new one.

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm