Overview
By default, Outlook add-ins only log errors to the console. To enable more detailed logging, follow the steps below based on your version of Outlook (listed below).
There are the following steps to take:
- If using M-Files for Outlook Pro, enable logging in the vault application.
- Open the developer tools depending on which Outlook client you are using.
- Enable logging with specific settings in the developer tools.
- Collect the logs and send them securely to M-Files Support.
- Disable logging.
Step 1) M-Files for Outlook Pro logs from the server-side
If you are using M-Files for Outlook Pro, first enable the vault application logging.
If you are using M-Files for Outlook Lite, skip this step.
You need a vault administrator account to set these options.
- Open M-Files Admin, expand the vault, select Configurations and on the right-hand side expand Other Applications and select M-Files for Outlook.
- Expand the "Logging (Vault Application)" node, and enable the settings as follows:
- "Enabled": "Yes"
- Under "Default Target", set "Enabled": "Yes" and "Default Level": "Debug".
- Select the "Logging (Add-In)" setting, and set its value to Debug.
- Click Save at the top right-hand corner.
Note: When you are done with the logging, disable logging again so unnecessary logs do not flood the storage ("Logging (Add-In)" back to "Error" and "Enabled" under "Logging (Vault Application)" to "No".
The following articles show examples of how to collect the logs once you are done logging:
- Example for Adobe Sign app, the approach is the same, it also shows the log paths for on-premise installations at the end: How to Enable Adobe Sign Advanced Logging
- Example in the M-Files user guide (for external objects, but the approach is the same) and shows how to download logs from M-Files Manage for M-Files Cloud vaults: Configuring Logging for External Object Type Connectors
Details on the available logging settings:
| SETTING | DESCRIPTION |
| Logging (Vault Application) | Specifies if logging is enabled for the vault application. |
| Logging (Add-In) |
Specifies if logging is enabled for the add-in. These are the explanations for the log levels: DEBUG: All logging. INFO: Logging on info, warning, and error levels. WARN: Logging on warning and error levels. ERROR: Logging on error levels. NONE: No logging. Unless you are instructed otherwise, set the level to "DEBUG". |
Step 2) Open the Developer Tools in your Outlook Client
Open the developer depending on the client you use (list below).
Open the Developer Tools for Outlook on the Web (OWA)
- Open Outlook in your web browser.
- Press F12 on your keyboard to open the Developer Tools.
- Enable the logging settings described above.
- Perform the action that you need to log.
- Collect the network and console contents, for more details see this Article.
- Perform the action that you need to log.
- Collect the network and console contents, for more details see this Article.
Open the Developer Tools for the New Outlook Desktop Application (One Outlook)
- Close all running instances of Outlook.
- Open Windows PowerShell.
- Enter the following command:
- olk.exe --devtools
- Outlook will launch with Developer Tools enabled.
- Enable the logging settings described above.
Open the Developer Tools for the Classic Outlook Desktop Client
- Hover your mouse over the add-in pane.
- Press F12 to open Developer Tools.
- Enable the logging settings described above.
- Refresh Outlook (F9) or reload the add-in to apply the new logging level.
- Perform the action that you need to log.
- Collect the network and console contents, for more details see this Article.
Step 3) Enable M-Files logging in the browser developer tools
Once the Developer Tools are open, follow these steps to enable detailed logging for the Outlook add-in:
- Navigate to the Application tab in the Developer Tools.
- In the left-hand sidebar, expand Local Storage and select the domain for the add-in:
https://mfnewoutlookaddinprod.m-files.com - In the key-value table on the right-hand side:
- Add a new key: "MFiles.OutlookAddin.DebugFlags-LogLevel"
- Set the value according to the desired log level. Unless you are instructed otherwise, choose value "0" for "Debug" level.
Details on the available logging settings:
| Log Level | Value |
| DEBUG | 0 |
| INFO | 1 |
| WARN | 2 |
| ERROR | 3 |
| OFF | 4 |
Step 4) Collect the logs and send them securely to M-Files Support
You should have the following logs:
- .har file from the browser dev tools Network tab.
- .log or .txt file from the browser dev tools Console tab.
- If using M-Files for Outlook Pro, a folder or archive with the vault application logs.
Send them securely to M-Files Support via our Cryptshare Portal: How to send files via Cryptshare portal.
Step 5) Disable Logging
You should still have the relevant tools open (M-Files Admin and/or the browser developer tools). Undo the actions taken above - disable logging in the vault application for M-Files for Outlook Pro, delete the key from the local storage in the browser developer tools.
