I’m using Enterprise Library 5 Logging block for logging in my windows application, also i defined some extended properties for my log entry, when i define a Database trace listener, and use it to log my message, where are saved my extended properties? in which field?
I’m using Enterprise Library 5 Logging block for logging in my windows application, also
Share
Extended Properties are not logged into a separate column or table with the out of the box Database Trace Listener.
To log Extended Properties, configure a Formatter that logs the Extended Properties:
Then the Extended Property data will be logged into the FormattedMessage column.
The downside of this is that the Extended Properties are buried in the FormattedMessage. If you wanted a more structured representation of Extended Properties you could create a custom Database Trace Listener.
For an example that logs Extended Properties to a separate table see Extended Properties Trace Listener with Custom Exception Handler.