Enabling error logs

If Cloud Drive Mapper is failing to map a drive then the cause of this can usually be found by examining the error logs when verbose logging mode is enabled. In order to enable verbose logging mode close CDM, then add these reg key's from a cmd prompt. Please note these cannot be run from an elevated command prompt, they need to be run as the end user context.


reg add "hkcu\software\iam cloud\clouddrivemapper" /v "WritelogToFile" /t "REG_SZ" /d "true" /f 

reg add "hkcu\software\iam cloud\clouddrivemapper" /v "verbose" /t "REG_SZ" /d "true" /f


In this case the log will be written to the users %localappdata% (AppData\Local\IAM Cloud\CloudDriveMapper\log) and will create a new daily logif left running, this keeps the log file to a reasonable size and is easier to work with.


Alternatively a specific log location can be set, however if left enabled this will cause the log file to continue to grow size and is difficult to work with.


reg add "hkcu\software\iam cloud\clouddrivemapper" /v "WritelogToFile" /t "REG_SZ" /d "%userprofile%\desktop\cdmlog.txt" /f

 

reg add "hkcu\software\iam cloud\clouddrivemapper" /v "verbose" /t "REG_SZ" /d "true" /f

Or they can be added manually to:


Computer\HKEY_CURRENT_USER\Software\IAM Cloud\CloudDriveMapper


String value = verbose with value of true

String value = WritelogToFile with value of location where you want the log file to save to, for example C:\Users\auser\desktop\cdmlog.txt

or

String value = WritelogToFile with value of true



IncludeAuthInfoInLogs


When applied gives graph token and cookie info into the logs instead of ********


REG ADD "HKCU\Software\IAM Cloud\CloudDriveMapper" /v "IncludeAuthInfoInLogs" /t "REG_SZ" /d "true" /f

or

REG ADD "HKLM\Software\IAM Cloud\CloudDriveMapper" /v "IncludeAuthInfoInLogs" /t "REG_SZ" /d "true" /f



Acquiring error logs

Once the registry keys have been added, reload CDM and it will generate the log file in the specified location. This can then be sent to IAM Cloud support for analysis.


Please note, if using a specified file location, we recommend to disable verbose logging once you have the logs as it will continue to populate the .txt file with data when CDM is running.


You can do this by removing the entries in the registry. They will exist in this location:


Computer\HKEY_CURRENT_USER\Software\IAM Cloud\CloudDriveMapper


Remove or rename the keys named 'verbose' and 'WritelogToFile'

 

If you need any assistance please do not hesitate to contact support@iamcloud.com



In application logs - New to version 2.7.4.1


We have introduced a new feature to v2.7.4.1. Using the Control (CTRL) key and right clicking on CDM in the icon tray, it now brings up the ability to have direct access to logging options. This option can be disabled using the DisableUserLogMenu key.


You will first be prompted to enable logs as per the below screenshot. For troubleshooting, safe logs are required. Once CDM is restarted these will be generated in  %localappdata% (AppData\Local\IAM Cloud\CloudDriveMapper\log)



Logging can then be disabled from the same menu.