Logging is the act of keeping a log of what has happened during the execution of a system. Logs are often helpful for diagnosing and debugging issues.