Guest User

Untitled

a guest
May 11th, 2012
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Using Log4Net to log all the functions called in ASP.NET and C# application
  2. private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
  3.  
  4.  
  5. log4net.Config.XmlConfigurator.Configure();
  6. log.Debug("My function called");
Advertisement
Add Comment
Please, Sign In to add comment