Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #region log4net
  2. string uniqueId = Guid.NewGuid().ToString();
  3.  
  4. //RequestId is the unique Id used in the correlated logging
  5. log4net.GlobalContext.Properties["RequestId"] = uniqueId;
  6.  
  7. log4net.Config.XmlConfigurator.Configure();
  8.  
  9. ILog logger = LogManager.GetLogger(typeof(Program));
  10. #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement