TraceListener is part of the default registration implementation in .NET. While this works great to see what your application does (very useful during development), log4net offers much more flexibility regarding log output. log4net allows you to configure where your output should go to the log (for example: to a file, to the event log, etc.) and allows you to fine-tune what you want to view.
For example, you want to get much more diagnostic information about the development and testing environments, while you are only interested in warnings and fatal errors in the adoption and production environment. With log4net, you can simply configure what you want to register, and this can be changed at any time after the application is deployed.
Alex
source share