Yes, that's exactly what you can do.
For instance, two bind event sources to two different trace sessions, you
would have something like this in your event sinks section:
<eventSink name="traceSink" description="Outputs to trace session 1."
type="Microsoft.EnterpriseInstrumentation.EventSinks.TraceEventSink">
<parameter name="sessionName" value="TraceSession1" />
</eventSink>
<eventSink name="traceSink" description="Outputs to trace session 2."
type="Microsoft.EnterpriseInstrumentation.EventSinks.TraceEventSink">
<parameter name="sessionName" value="TraceSession2" />
</eventSink>
Hope this helps,
David [MSFT]
--------------------
| From: "Steve Miller" <stevemi@avanade.com>
| Subject: EIF event sink configuration.
[quoted text clipped - 8 lines]
| NNTP-Posting-Host: reverse.24.x.114.209.idealapps.com 209.114.239.24
| Path:
cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.
phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.enterprise.tools:1214
| X-Tomcat-NG: microsoft.public.vsnet.enterprise.tools
[quoted text clipped - 6 lines]
|
| Steve Miller
David:
In the example below should the same "name" attribute be
used when defining the <eventSink> element? How would
EIF know which one to use?
>-----Original Message-----
>Yes, that's exactly what you can do.
[quoted text clipped - 7 lines]
> </eventSink>
> <eventSink name="traceSink" description="Outputs to
trace session 2."
>type="Microsoft.EnterpriseInstrumentation.EventSinks.TraceEventSink">
> <parameter name="sessionName"
value="TraceSession2" />
> </eventSink>
>
[quoted text clipped - 30 lines]
>
>.
Steve Miller - 18 Nov 2003 14:34 GMT
David:
In the example below, should the "name" attribute be different in
<eventSink> element definition? Else how would the EIF know which one to
use?
sm
> Yes, that's exactly what you can do.
>
[quoted text clipped - 26 lines]
> | NNTP-Posting-Host: reverse.24.x.114.209.idealapps.com 209.114.239.24
> | Path:
cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.
> phx.gbl
> | Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.enterprise.tools:1214
[quoted text clipped - 9 lines]
> |
> | Steve Miller
Barath Vasudevan [MS] - 18 Nov 2003 17:30 GMT
Hi,
The "name" attribute is just the name of the property that the TraceSink
expects/needs to be set. The "value" attribute is what the tracesink/eif
uses to distinguish the different trace sessions.
Hope it helps.
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: "Steve Miller" <stevemi@avanade.com>
>References: <ODGJcu3lDHA.424@TK2MSFTNGP10.phx.gbl>
<a4J#h#YmDHA.1548@cpmsftngxa06.phx.gbl>
>Subject: Re: EIF event sink configuration.
>Date: Tue, 18 Nov 2003 09:34:36 -0500
[quoted text clipped - 7 lines]
>NNTP-Posting-Host: 216.183.179.1
>Path:
cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.
phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.enterprise.tools:1418
>X-Tomcat-NG: microsoft.public.vsnet.enterprise.tools
[quoted text clipped - 39 lines]
>>
>cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10