.net - Enterprise Library 5 logging class name -


I am trying to use the logging block of enterprise library for our application and I am thinking that Is there any way logger to log on to yourself by logging in class name?

When I call the logger, I can manually include the name of the class in the message. But I want to know that there is another way to do this.

thanks

/ share logger for classes

  Private Shared Readline _name string = As the system. Reflections.modebase.gate CurrentMethod (). Type the disclaimer. Name + ":"  

Then you can copy / paste it and it is executable because it only executes on class load.

However, I am also searching for the best way to include it in the logging statement. Entlib uses Spring .NET that does not support the same hierarchical logger structure. Using string combination does not seem to be the right way to do this.


Comments