Event Viewer

Topics: Logging Application Block
Nov 4, 2007 at 1:46 AM
Hello, how can I create categories of the Event Viewer for using the Logging Application Block?

It's because I have my code similar than the Logging Application Block Samples, but It doesn't working

Nov 5, 2007 at 12:30 PM

What do you mean by creating categories of the event viewer? You have the logging block's categories, but those don't show up in the event log unless they are part of the event's message. Then you have the event log's source and task categories (at least they are called like this in Vista, I think they were just plain categories before); the source name is part of the event log trace listener's configuration, while the task categories is not managed by the trace listener.

Does the logging block sample you're using create the categories you need? How is you code not working? Do you get an exception, the result is not what you expected or you just don't get any observable outcome?