Edwin's Journey

Sitecore, SharePoint & Agile



Get CurrentMethod information from a shared logging class to use with log4net

One of the most common ways to create a log object for log4net is to declare it in every class file like log4net.ILog log = log4net.LogManager.GetLogger( System.Reflection.MethodBase.GetCurrentMethod().DeclaringType ); It would be much nicer if we could use a shared class… Continue Reading →

© 2019 Edwin's Journey — Powered by WordPress

Theme by Anders NorenUp ↑