Protected application can log important events to a text file.
Select "Enable logging" option to enabled logging for protected application.
Protected application can log the following information:
- All messages displayed by protection code to end user (errors, notifications...)
- License activation: site code, mid code, activation code, serial number (if applicable).
- License removal: removal code
- License transfer: new site code, new activation code
- License extension: site code, mid code, activation code
- Demo extension: site code, mid code, activation code
- Change of locking parameter: parameter name, old hash value, new hash value
NOTE: At least single logging option must be selected.
Default log filename is "default.log" and it can be changed here. This filename is embedded into protected application during protection process.
By default, log file is located in license directory on remote machine.
Where <license dir> is the name of directory with license file (available in protection report)
Folder identified by CSIDL_COMMON_APPDATA it the file system directory that contains application data for all users.
A typical path is:
C:\Documents and Settings\All Users\Application Data\<license dir>
C:\Users\All users\<license dir>
NOTE: CSIDL_COMMON_APPDATA is same as ALLUSERSAPPDATA. Path may be different on different operating systems.
Changing default activation filename dynamically from command line
Use -PCG_CL_LOGFILE option to override default log filename and location by passing it via command line to protected application.
Log file structure
Each log file entry contains:
- date and time (in DD.MM.YYYY HH:MM format)
- full path to protected application which generated entry (log file may be shared by multiple protected applications).
- event message