Specializing logging for control debug audit and security