debugLevel

Key Location

HKEY_LOCAL_MACHINE\SOFTWARE\SAFENET\ProtectToolkit M\debugLevel

Type

REG_DWORD

Values

Valid values are 0 through 5. If turned on, debug output is saved in the ptkm.log file in the root directory of the current drive. Each level includes the output of all preceding levels.

>0: no debug output

>1: log the invocation of CSP related methods and if an error occurs, their return code

>2: Internal errors are converted to NTE_SYS_FAIL. This debug level logs the internal error at the point of conversion.

>3: CSP function input and output parameters - but NOT user related data (such as encrypted or clear text, or data to hash).

>4: Other information not covered by the preceding levels - but NOT user related data.

>5: Lists the Cryptoki function calls, by name only.

Note that the debug level is read when a process loads the SafeNet ProtectToolkit-M library file. This means that in order to change the debug level, you must first stop any SafeNet ProtectToolkit-M applications.

The log file ptkm.log is cleared during initialization of the SafeNet ProtectToolkit-M library.