Is there example of Setting Up Logging (for Example NLog) with Add-In Project?
Solved! Go to Solution.
Used log4net.
private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(typeof(T));
log4net.Config.XmlConfigurator.Configure(new FileInfo("logger.config"));
logger.Debug("Test");
logger.config (eg): property "Copy Always" for this file has to be set, so it gets copied to bin build folder (wonder how this will get bundled with the esriAddinX file...)
using nlog.config (at root level):
Used log4net.
private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(typeof(T));
log4net.Config.XmlConfigurator.Configure(new FileInfo("logger.config"));
logger.Debug("Test");
logger.config (eg): property "Copy Always" for this file has to be set, so it gets copied to bin build folder (wonder how this will get bundled with the esriAddinX file...)