Enable Microsoft 365 request logging

To enable logging of requests sent to Microsoft 365:

  1. Navigate to the folder where Adaxes service is installed. By default, the folder is C:\Program Files\Softerra\Adaxes 3\Service.

  2. Open the Softerra.Adaxes.Service.exe.config file with a text editor.

  3. Locate the configuration\softerra.adaxes\office365\trace XML element.

  4. Set the enabled parameter to true and specify the path to the file that will store log records in the outputFilePath parameter. For example:

    <configuration>
        ...
        <softerra.adaxes>
            ...
            <office365 ...>
                <trace enabled="true" outputFilePath="C:\logs\m365.trace.txt" />
    

    If you specify only the file name in the outputFilePath parameter, the log file will be created in the folder where the Softerra.Adaxes.Service.exe.config file is located.

  5. Save the file.

  6. Restart the Adaxes service.

Since request logging is quite intensive, the file can grow very quickly. Permanent logging of Microsoft 365 requests consumes resources and affects performance. Therefore, it is recommended to enable the logging only when it is needed.