Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Enterprise Tools / November 2003

Tip: Looking for answers? Try searching our database.

Customs sinks and tracelogs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sridhar Venkatesan - 16 Nov 2003 04:06 GMT
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.
Barath Vasudevan [MS] - 18 Nov 2003 21:58 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.