Create and modify the following files:
sudo defaults write /Library/Preferences/com.apple.MCXDebug debugOutput -2
sudo defaults write /Library/Preferences/com.apple.MCXDebug collateLogs 1
sudo touch /var/db/MDM_EnableDebugNote:
Computers must be restarted to enable the debugging.
The output for this log is in the following locations:
/Library/Logs/ManagedClient/ManagedClient.logand
/var/log/system.logTo disable debug logging, remove the following files and reboot the machine:
/var/db/MDM_EnableDebugand
/Library/Preferences/com.apple.MCXDebug.plist