Reputation: 110
My task is to hook up an El5 Logger to a legacy database, where the company's exceptions are logged. I followed the instructions in this post: custom DB logging using enterprise library 4.1
Here is where I get stuck:
I copied the FormattedDatabaseTraceListener into my solution, changed the name to "MyDbTraceListener" and modified it to talk to my database. How do I get the EL5 framework to use my new Tracelistener? I can't pick it in the EL5 config designer, as it doesn't derive from CustomTraceListener.
Any help is appreciated.
Upvotes: 1
Views: 500
Reputation: 30401
The extension APIs changed significantly in Entlib 5.0. Take a look at the Enterprise Library Extensibility Hands-on labs for details on creating various kinds of extensions, including trace listeners.
Upvotes: 3