none
Does implementing logging in an Outlook plugin (button) require any permissions? RRS feed

  • Question

  • Hello,

    We have added a Button to Outlook. Onclick the email gets copied to a folder on hard disk.

    Now, we want to implement logging, that is, write exceptions to a txt file as well as to event viewer.

    Does this require any special permissions? because, the button is a plugin inside outlook. So, just wondering if there could be any issues I have to consider.

    Thanks.

    Monday, July 22, 2013 8:57 AM

Answers

  • That depends on where your log file is. If your dll is in a Program Files subfolder and you are writing to a log file in the same folder, you will need Administrative privileges and UAC off.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Monday, July 22, 2013 1:30 PM
  • for %APPDATA% folder you are fine, everything under user's home directory is writable for his account. As for event log - as long as you do not define custom category for writing to event logs (creation of those requires administrative privs) you are also fine.
    Wednesday, July 24, 2013 6:40 AM

All replies

  • That depends on where your log file is. If your dll is in a Program Files subfolder and you are writing to a log file in the same folder, you will need Administrative privileges and UAC off.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Monday, July 22, 2013 1:30 PM
  • That depends on where your log file is. If your dll is in a Program Files subfolder and you are writing to a log file in the same folder, you will need Administrative privileges and UAC off.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    And what if the log file is in C:\   or   C:\folder?
    Wednesday, July 24, 2013 5:17 AM
  • for %APPDATA% folder you are fine, everything under user's home directory is writable for his account. As for event log - as long as you do not define custom category for writing to event logs (creation of those requires administrative privs) you are also fine.
    Wednesday, July 24, 2013 6:40 AM