Enterprise Library

hi,

I want to use ETW(windows Event tracing) with enterprise Library 2.0.Is it possible to use this if yes then how we can implement this.

Ashish

[164 byte] By [Ashish26june] at [2007-12-26]
# 1

Ashish,

I don't recall seeing anything built into EntLib that supports ETW out of the box, but you could always extend the Logging Application Block.

Tim

TimMurphy at 2007-9-4 > top of Msdn Tech,Architecture,Architecture General...
# 2

Hi Ashish,

Enterprise Blocks doesn't directly give you API to use ETW, but you can use logging sink; extending the sink you can provide your custom Event Writer, and as application requires you can use it.

See the way Instrumentation has been done; in a same fashion you do need to use Event Logging. As it is kind of Logging you would use and extend the logging blocks.

You will need to put the configuration block to be able to read the Event configuration and initialize the Event source instance.

http://www.codeproject.com/dotnet/GetLoggingWithEntLib.asp

The above article explain how to create custom sinks and that way you can add the Event tracer. As you know the basic code to write the Event Tracing so it shouldn't be hard to extend and write the custom log writer.

I hope this helps you.

-Paresh.

PareshGheewala at 2007-9-4 > top of Msdn Tech,Architecture,Architecture General...