How can we do logging in SSIS?

SSIS offers logging features that not only create log entries but also write custom messages when run-time events occur. Integration Services supports a large number of log providers and gives customers the opportunity to establish their own. Log entries can be written to text files, SQL Server Profiler, SQL Server, Windows Event Log, or XML files using Integration Services log providers. The logging configuration includes a feature that allows you to log the details of various events such as OnError, OnWarning, and so on.