Logging is the practice of recording events, messages, and state changes generated by applications, infrastructure, and platforms. Logs provide a detailed, time-ordered record of what happened in a system. Also known as log management, logging is a core pillar of observability and troubleshooting.