The PackageLog object allows a Data Transformation Services (DTS) custom task or ActiveScriptTask object to write task log records in the database or write log messages to the log file.
The reference to the PackageLog object is a parameter of the task Execute method, which you implement in a custom task, and thus have access. It is also available in task Microsoft® ActiveX® scripts, through the DTSPackageLog object.