Logs are a ledger of events that occur on a computer system. These are often stored in “log files” due to them tradtionally being stored within files on a filesystem.
In a contemporary setting, logs are shipped off of endpoints to a centralized collector where they are analyzed for security and maintenance purposes. Shipping logs elsewhere also serves backup purposes.
Logging is the process of adding data to log files.