Simple Instance Of Log4Net Logger


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #region Logger
  2. /// <summary>
  3. /// Log4Net Instance
  4. /// </summary>
  5. public ILog Log
  6. {
  7. get { return LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); }
  8. }
  9. #endregion

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.