The Tracer
class does not expose the LogEntry
that is created so there is no way to achieve what you want out of the box.
Probably the easiest way to add extended property support is to get the source code for Tracer
and create your own custom implementation that accepts extended properties. You could also create a custom TraceManager
that uses the custom Tracer
.
Also note that the out of the box FormattedDatabaseTraceListener
does not log extended properties so you would need to create a custom trace listener to do that (you can find one approach at Enterprise Library Sample Projects).