Sep 8, 2008 at 2:39 PM
Edited Sep 8, 2008 at 2:41 PM
I've tried creating a Custom Formatter as per the documentation. The documentation says to inherit from ILogFormatter. I then compile and load the Enterprise Library Configuration utility from Visual Studio. When I click Load Assembly and point to my file
it simply says: "There were no types found in the assembly.... that implement or inherit from the base type ... Formatters.LogFormatter".
This confused me as I clearly am. I did some research and it seems some people inherited from LogFormatter. To test this I created a second class that inherited but still no joy. I also checked that all of my referenced assemblies were the signed versions.
Finally I loaded the Enterprise Library Configuration utility from the Enterprise Library install directory and I was able to see the second class - inherited from LogFormatter.
This has left me rather confused. Is the official documentation incorrect? Why does the right-click shortcut from Visual studio not work? Surely implementing ILogFormatter should be sufficient. What am I missing here?