Groups | Blog | Home
all groups > visual studio .net enterprise tools > december 2003 >

visual studio .net enterprise tools : How to publish to different sinks


Karuppasamy
12/8/2003 4:10:40 AM
Hi All

i am using the Microsoft.ApplicationBlocks.Logging block to log the events to the Event Log and Sql Server.

I would like to log only specific events to Event Log and some other Events only to SQL Server. But right now all the Events are logged in both Event Log and also the SQL server.

How to get this?

Thanks





---
jyosri NO[at]SPAM online.microsoft.com
12/8/2003 10:33:29 PM

Hi,

From the config file, you can configure the different events to a
particular Event Sink or use all of them. In this case, you can bind Event
Log to a specific event and SQL Server for the others.

<eventCategoryRef name="My Events">
<eventSinkRef name="logSink" />
</eventCategoryRef>

<eventCategoryRef name="Other Events">
<eventSinkRef name="SQLServerSink" />
</eventCategoryRef>


Hope this helps.

Regards,
Jyothi

|
| Hi All

i am using the Microsoft.ApplicationBlocks.Logging block to log the events
to the Event Log and Sql Server.

I would like to log only specific events to Event Log and some other Events
only to SQL Server. But right now all the Events are logged in both Event
Log and also the SQL server.

How to get this?

Thanks




|
| ---
| Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
|


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
AddThis Social Bookmark Button