Is there example of Setting Up Logging (for Example NLog) with Add-In Project?
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):
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.