Logs in Outlook add- in

Add-in Express™ Support Service
That's what is more important than anything else

Logs in Outlook add- in
 
IT Support




Posts: 12
Joined: 2016-08-19
I tried adding personal logs to my Outlook add in code to know at what point it crashes if it does. But whenever I add logs, my Outlook goes to the 'not responding' mode. Similar was the case when I added logs to the Word add in I created. Is there a way to do this the right way?
Posted 11 May, 2017 02:13:10 Top
OliverM




Posts: 144
Joined: 2015-08-13
Not sure if I got you right but log4net is surely not a bad choice. Aunt Google will find tons of log4net tutorials to help get you started and if logging speed is mission critical you can extend log4net with asynchronous logging.
Kind regards
Oliver
Posted 11 May, 2017 04:39:30 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello guys,

If you use log4net, make sure that you initialize it in an event of the add-in module, not in the module's constructor. Depending on the Office application, its version, and the way you start it, the very first event is either AddinInitialize or OnRibbonBeforeCreate; see events of the add-in module.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 11 May, 2017 05:05:59 Top